libXp/libXp.spec

78 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

2020-02-28 10:14:38 -05:00
Name: libXp
2023-02-16 14:21:52 +08:00
Version: 1.0.4
Release: 1
2020-02-28 10:14:38 -05:00
Summary: LibXp runtime library for X.Org
License: MIT
URL: http://www.x.org
2023-02-16 14:21:52 +08:00
Source0: https://www.x.org/pub/individual/lib/%{name}-%{version}.tar.xz
2020-02-28 10:14:38 -05:00
Patch0: add-proto-files.patch
2023-02-16 14:21:52 +08:00
BuildRequires: xorg-x11-util-macros xorg-x11-proto-devel libX11-devel make
BuildRequires: libXext-devel libXau-devel libtool automake autoconf gettext
2020-02-28 10:14:38 -05:00
%description
LibXp runtime library for X.Org.
%package devel
Summary: Development package for %{name}
Requires: libXau-devel pkgconfig
Requires: %{name} = %{version}-%{release}
BuildRequires: xorg-x11-proto-devel
%description devel
This pacakge contains some header files and library files for
the development of %{name}.
%prep
%autosetup -p1
%build
export CPPFLAGS="$CPPFLAGS -I$RPM_BUILD_ROOT%{_includedir}"
autoreconf -v --install
%configure --disable-static
make
2023-02-16 14:21:52 +08:00
2020-02-28 10:14:38 -05:00
%install
rm -rf %{buildroot}
%make_install
%delete_la
2020-03-11 10:19:27 +08:00
%post -p /sbin/ldconfig
2020-02-28 10:14:38 -05:00
2020-03-11 10:19:27 +08:00
%postun -p /sbin/ldconfig
2020-02-28 10:14:38 -05:00
%files
%doc AUTHORS COPYING ChangeLog
%{_libdir}/libXp.so.*
%exclude %{_mandir}
%files devel
%{_includedir}/X11/extensions/Print.h
%{_includedir}/X11/extensions/Printstr.h
%{_libdir}/pkgconfig/printproto.pc
%{_libdir}/libXp.so
%{_libdir}/pkgconfig/xp.pc
%changelog
2023-02-16 14:21:52 +08:00
* Thu Feb 16 2023 lilong <lilong@kylinos.cn> - 1.0.4-1
- Upgrade to 1.0.4
2020-03-11 10:19:27 +08:00
* Wed Mar 11 2020 yangjian <yangjian79@huawei.com> - 1.0.3-6
- Fix dependencies
2020-02-28 10:14:38 -05:00
* Fri Feb 28 2020 yanglijin <yanglijin@huawei.com> - 1.0.3-5
- provides pkgconfig(printproto)
* Sun Jan 19 2020 yanglijin <yanglijin@huawei.com> - 1.0.3-4
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: modify buildrequires
* Wed Dec 11 2019 catastrowings <jianghuhao1994@163.com> - 1.0.3-3
- openEuler init