libXt/libXt.spec

92 lines
2.4 KiB
RPMSpec
Raw Normal View History

%bcond_without static
2019-09-30 10:59:50 -04:00
Name: libXt
2021-11-25 16:45:46 +08:00
Version: 1.2.1
Release: 3
2019-09-30 10:59:50 -04:00
License: MIT
Summary: X.Org X11 libXt runtime library
URL: https://www.x.org
Source0: https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
2022-06-06 08:10:43 +00:00
BuildRequires: xorg-x11-util-macros autoconf automake libtool make glib2-devel
2021-11-25 16:45:46 +08:00
BuildRequires: pkgconfig(xproto) pkgconfig(x11) pkgconfig(sm)
2019-09-30 10:59:50 -04:00
2021-11-25 16:45:46 +08:00
Requires: libX11 >= 1.6
2019-09-30 10:59:50 -04:00
%description
X.Org X11 libXt runtime library
%package devel
Summary: X.Org X11 libXt development package
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for %{name}.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -ivf
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --enable-unit-tests --with-xfile-search-path="%{_sysconfdir}/X11/%%L/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%l/%%T/\%%N%%C%%S:%{_sysconfdir}/X11/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%L/%%T/%%N%%S:%{_sysconfdir}/X\11/%%l/%%T/%%N%%S:%{_sysconfdir}/X11/%%T/%%N%%S:%{_datadir}/X11/%%L/%%T/%%N%%C%%S:%{_datadir}/X1\1/%%l/%%T/%%N%%C%%S:%{_datadir}/X11/%%T/%%N%%C%%S:%{_datadir}/X11/%%L/%%T/%%N%%S:%{_datadir}/X11/%%\l/%%T/%%N%%S:%{_datadir}/X11/%%T/%%N%%S" \
%if %{with static}
--disable-static
%endif
2019-09-30 10:59:50 -04:00
V=1 %make_build
2022-06-06 08:10:43 +00:00
%check
make check
2019-09-30 10:59:50 -04:00
%install
%make_install
mkdir -p -m 0755 $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults
%delete_la
%ldconfig_scriptlets
%files
%defattr(-,root,root)
2019-11-06 19:36:33 +08:00
%license COPYING
2019-09-30 10:59:50 -04:00
%{_libdir}/*.so.*
%dir %{_datadir}/X11/app-defaults
%files devel
%defattr(-,root,root)
%{_includedir}/X11/*.h
%{_libdir}/*.so
%if %{without static}
2019-09-30 10:59:50 -04:00
%{_libdir}/*.a
%endif
2019-09-30 10:59:50 -04:00
%{_libdir}/pkgconfig/*.pc
%files help
%defattr(-,root,root)
%{_mandir}/man3/*.3*
%{_docdir}/%{name}/*.xml
%changelog
* Sat Oct 22 2022 wangkerong <wangkerong@h-partners.com> - 1.2.1-3
- disable static library by default
2022-06-06 08:10:43 +00:00
* Mon Jun 06 2022 wangkerong <wangkerong@h-partners.com> - 1.2.1-2
- enable test
2021-11-25 16:45:46 +08:00
* Thu Nov 25 2021 xingxing <xingxing9@huawei.com> - 1.2.1-1
- updata to 1.2.1
2020-07-23 20:46:28 +08:00
* Fri Jul 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.2.0-0
- updata package
2019-11-06 19:36:33 +08:00
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.5-11
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:change the directory of the license file
2019-09-30 10:59:50 -04:00
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.5-10
- Package init