diff --git a/index.theme b/index.theme new file mode 100644 index 0000000000000000000000000000000000000000..cda0b19ae5f7d422d3e204d34743e82cedcede9e --- /dev/null +++ b/index.theme @@ -0,0 +1,2 @@ +[Icon Theme] +Inherits=Adwaita diff --git a/libXcursor-1.2.0.tar.bz2 b/libXcursor-1.2.0.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..c14dafadf1fd53fdb647ceab94a5ef9ec4ac3769 Binary files /dev/null and b/libXcursor-1.2.0.tar.bz2 differ diff --git a/libXcursor.spec b/libXcursor.spec new file mode 100644 index 0000000000000000000000000000000000000000..b09d1c2d2e671c660d3a9ed9933a91fc573b4074 --- /dev/null +++ b/libXcursor.spec @@ -0,0 +1,89 @@ +%define anolis_release 1 + +Summary: Cursor management library +Name: libXcursor +Version: 1.2.0 +Release: %{anolis_release}%{?dist} +License: MIT +URL: http://www.x.org + +Source0: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2 +Source1: index.theme + +Requires: libX11 >= 1.5.99.902 + +BuildRequires: make +BuildRequires: autoconf automake libtool +BuildRequires: xorg-x11-util-macros +BuildRequires: xorg-x11-proto-devel +BuildRequires: libX11-devel >= 1.5.99.902 +BuildRequires: libXfixes-devel +BuildRequires: libXrender-devel >= 0.8.2 +BuildRequires: autoconf automake libtool pkgconfig + +%description +This is a simple library designed to help locate and load cursors. +Cursors can be loaded from files or memory. A library of common cursors +exists which map to the standard X cursor names.Cursors can exist in +several sizes and the library automatically picks the best size. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} + +%description devel +libXcursor development package. + +%prep +%setup -q -n %{name}-%{version} +iconv --from=ISO-8859-2 --to=UTF-8 COPYING > COPYING.new && \ +touch -r COPYING COPYING.new && \ +mv COPYING.new COPYING + +# Disable static library creation by default. +%define with_static 0 + +%build +autoreconf -v --install --force +#export CFLAGS="$RPM_OPT_FLAGS -DICONDIR=\"%{_datadir}/icons\"" +%configure \ +%if ! %{with_static} + --disable-static +%endif +make V=1 %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/default +install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/icons/default/index.theme + +# We intentionally don't ship *.la files +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +%ldconfig_post +%ldconfig_postun + +%files +%doc AUTHORS COPYING README.md +%{_libdir}/libXcursor.so.1 +%{_libdir}/libXcursor.so.1.0.2 +%dir %{_datadir}/icons/default +%{_datadir}/icons/default/index.theme + +%files devel +%dir %{_includedir}/X11/Xcursor +%{_includedir}/X11/Xcursor/Xcursor.h +%if %{with_static} +%{_libdir}/libXcursor.a +%endif +%{_libdir}/libXcursor.so +%{_libdir}/pkgconfig/xcursor.pc +%{_mandir}/man3/Xcursor*.3* + +%changelog +* Thu Apr 07 2022 mgb01105731 - 1.2.0-1 +- Init from upstream version 1.2.0 +