3a66fe
%global tarball libXcursor
3a66fe
#global gitdate 20130524
3a66fe
%global gitversion 8f677eaea
3a66fe
3a66fe
Summary: Cursor management library
3a66fe
Name: libXcursor
3a66fe
Version: 1.1.15
3a66fe
Release: 1%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
3a66fe
License: MIT
3a66fe
Group: System Environment/Libraries
3a66fe
URL: https://www.x.org
3a66fe
3a66fe
%if 0%{?gitdate}
3a66fe
Source0:    %{tarball}-%{gitdate}.tar.bz2
3a66fe
Source2:    make-git-snapshot.sh
3a66fe
Source3:    commitid
3a66fe
%else
3a66fe
Source0: https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
3a66fe
%endif
3a66fe
Source1: index.theme
3a66fe
3a66fe
Requires: libX11 >= 1.5.99.902
3a66fe
3a66fe
BuildRequires: autoconf automake libtool
3a66fe
BuildRequires: xorg-x11-util-macros
3a66fe
BuildRequires: xorg-x11-proto-devel
3a66fe
BuildRequires: libX11-devel >= 1.5.99.902
3a66fe
BuildRequires: libXfixes-devel
3a66fe
BuildRequires: libXrender-devel >= 0.8.2
3a66fe
BuildRequires: autoconf automake libtool pkgconfig
3a66fe
3a66fe
%description
3a66fe
This is  a simple library designed to help locate and load cursors.
3a66fe
Cursors can be loaded from files or memory. A library of common cursors
3a66fe
exists which map to the standard X cursor names.Cursors can exist in
3a66fe
several sizes and the library automatically picks the best size.
3a66fe
3a66fe
%package devel
3a66fe
Summary: Development files for %{name}
3a66fe
Group: Development/Libraries
3a66fe
Requires: %{name} = %{version}-%{release}
3a66fe
3a66fe
%description devel
3a66fe
libXcursor development package.
3a66fe
3a66fe
%prep
3a66fe
%setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
3a66fe
iconv --from=ISO-8859-2 --to=UTF-8 COPYING > COPYING.new && \
3a66fe
touch -r COPYING COPYING.new && \
3a66fe
mv COPYING.new COPYING
3a66fe
3a66fe
# Disable static library creation by default.
3a66fe
%define with_static 0
3a66fe
3a66fe
%build
3a66fe
autoreconf -v --install --force
3a66fe
#export CFLAGS="$RPM_OPT_FLAGS -DICONDIR=\"%{_datadir}/icons\""
3a66fe
%configure \
3a66fe
%if ! %{with_static}
3a66fe
 --disable-static
3a66fe
%endif
3a66fe
make V=1 %{?_smp_mflags}
3a66fe
3a66fe
%install
3a66fe
rm -rf $RPM_BUILD_ROOT
3a66fe
3a66fe
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
3a66fe
3a66fe
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/default
3a66fe
install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/icons/default/index.theme
3a66fe
3a66fe
# We intentionally don't ship *.la files
3a66fe
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
3a66fe
3a66fe
%clean
3a66fe
rm -rf $RPM_BUILD_ROOT
3a66fe
3a66fe
%post -p /sbin/ldconfig
3a66fe
%postun -p /sbin/ldconfig
3a66fe
3a66fe
%files
3a66fe
%defattr(-,root,root,-)
3a66fe
%doc AUTHORS COPYING README
3a66fe
%{_libdir}/libXcursor.so.1
3a66fe
%{_libdir}/libXcursor.so.1.0.2
3a66fe
%dir %{_datadir}/icons/default
3a66fe
%{_datadir}/icons/default/index.theme
3a66fe
3a66fe
%files devel
3a66fe
%defattr(-,root,root,-)
3a66fe
%dir %{_includedir}/X11/Xcursor
3a66fe
%{_includedir}/X11/Xcursor/Xcursor.h
3a66fe
%if %{with_static}
3a66fe
%{_libdir}/libXcursor.a
3a66fe
%endif
3a66fe
%{_libdir}/libXcursor.so
3a66fe
%{_libdir}/pkgconfig/xcursor.pc
3a66fe
#%dir %{_mandir}/man3x
3a66fe
%{_mandir}/man3/Xcursor*.3*
3a66fe
3a66fe
%changelog
3a66fe
* Tue Apr 24 2018 Adam Jackson <ajax@redhat.com> - 1.1.15-1
3a66fe
- libXcursor 1.1.15
3a66fe
3a66fe
* Fri Feb 17 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 1.1.14-8
3a66fe
- Remove RHEL default cursor theme variant (rhbz#1388458)
3a66fe
3a66fe
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.14-7
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3a66fe
3a66fe
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.14-6
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3a66fe
3a66fe
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.14-5
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3a66fe
3a66fe
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.14-4
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3a66fe
3a66fe
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.14-3
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3a66fe
3a66fe
* Wed Feb 12 2014 Adam Jackson <ajax@redhat.com> 1.1.14-2.1
3a66fe
- Mass rebuild
3a66fe
3a66fe
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.14-2
3a66fe
- Mass rebuild 2013-12-27
3a66fe
3a66fe
* Fri May 31 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.1.14-1
3a66fe
- libXCursor 1.1.14
3a66fe
3a66fe
* Mon May 27 2013 Peter Hutterer <peter.hutterer@redhat.com> - 1.1.13-7.20130524git8f677eaea
3a66fe
- Require libX11 1.6RC2 for _XEatDataWords
3a66fe
3a66fe
* Fri May 24 2013 Adam Jackson <ajax@redhat.com> 1.1.13-6
3a66fe
- Fix cursor theme in RHEL
3a66fe
3a66fe
* Fri May 24 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.1.13-3.20130524git8f677eaea
3a66fe
- Update to fix following CVEs:
3a66fe
- CVE-2013-2003
3a66fe
3a66fe
* Thu Mar 07 2013 Peter Hutterer <peter.hutterer@redhat.com> - 1.1.13-4
3a66fe
- autoreconf for aarch64
3a66fe
3a66fe
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.13-3
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3a66fe
3a66fe
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.13-2
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3a66fe
3a66fe
* Thu Mar 08 2012 Adam Jackson <ajax@redhat.com> 1.1.13-1
3a66fe
- libXcursor 1.1.13
3a66fe
3a66fe
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.12-2
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3a66fe
3a66fe
* Thu Nov 17 2011 Adam Jackson <ajax@redhat.com> 1.1.12-1
3a66fe
- libXcursor 1.1.12
3a66fe
3a66fe
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-3
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3a66fe
3a66fe
* Fri Feb 04 2011 Ray Strode <rstrode@redhat.com> 1.1.11-2
3a66fe
- Change the default cursor theme
3a66fe
  (also make the dependency a soft one)
3a66fe
3a66fe
* Thu Oct 28 2010 Adam Jackson <ajax@redhat.com> 1.1.11-1
3a66fe
- libXcursor 1.1.11
3a66fe
3a66fe
* Thu Mar 11 2010 Matthias Clasen <mclasen@redhat.com> - 1.1.10-5
3a66fe
- The theme file should _not_ be a config file
3a66fe
3a66fe
* Tue Mar  9 2010 Matthias Clasen <mclasen@redhat.com> - 1.1.10-4
3a66fe
- Make default cursor theme inherit dmz-aa instead of Bluecurve
3a66fe
- Also require the cursor theme package
3a66fe
3a66fe
* Wed Oct 21 2009 Parag <paragn@fedoraproject.org> - 1.1.10-3
3a66fe
- Merge-Review #226066
3a66fe
- make is not verbose
3a66fe
- preserve timestamp of index.theme
3a66fe
3a66fe
* Thu Oct 08 2009 Parag <paragn@fedoraproject.org> - 1.1.10-2
3a66fe
- Merge-Review #226066
3a66fe
- Removed XFree86-libs, xorg-x11-libs as Obsoletes
3a66fe
- Removed BR:pkgconfig
3a66fe
- Few spec cleanups
3a66fe
3a66fe
* Fri Aug 28 2009 Peter Hutterer <peter.hutterer@redhat.com> 1.1.10-1
3a66fe
- libXcursor 1.1.10
3a66fe
3a66fe
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-6
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3a66fe
3a66fe
* Thu Jul 23 2009 Adam Jackson <ajax@redhat.com> 1.1.9-5
3a66fe
- Un-require xorg-x11-filesystem
3a66fe
- Remove useless %%dir
3a66fe
3a66fe
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-4
3a66fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3a66fe
3a66fe
* Tue Jul 15 2008 Adam Jackson <ajax@redhat.com> 1.1.9-3
3a66fe
- Fix license tag.
3a66fe
3a66fe
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.9-2
3a66fe
- Autorebuild for GCC 4.3
3a66fe
3a66fe
* Mon Sep 24 2007 Adam Jackson <ajax@redhat.com> 1.1.9-1
3a66fe
- libXcursor 1.1.9
3a66fe
3a66fe
* Wed Aug 22 2007 Adam Jackson <ajax@redhat.com> - 1.1.8-3
3a66fe
- Rebuild for PPC toolchain bug
3a66fe
3a66fe
* Sat Jul  7 2007 Matthias Clasen <mclasen@redhat.com> 1.1.8-3
3a66fe
- Don't own /usr/share/icons
3a66fe
- Require pkgconfig in -devel
3a66fe
3a66fe
* Sat Apr 21 2007 Matthias Clasen <mclasen@redhat.com> 1.1.8-2
3a66fe
- Don't install INSTALL
3a66fe
3a66fe
* Mon Nov 20 2006 Adam Jackson <ajax@redhat.com> 1.1.8-1
3a66fe
- Update to 1.1.8
3a66fe
3a66fe
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> 1.1.7-1.1
3a66fe
- rebuild
3a66fe
3a66fe
* Wed Jun 07 2006 Mike A. Harris <mharris@redhat.com> 1.1.7-1
3a66fe
- Update to 1.1.7 from X11R7.1
3a66fe
3a66fe
* Wed Jun 07 2006 Mike A. Harris <mharris@redhat.com> 1.1.6-2
3a66fe
- Added "BuildRequires: xorg-x11-proto-devel"
3a66fe
- Added "Requires: xorg-x11-proto-devel" to devel package, needed by xcursor.pc
3a66fe
- Replace "makeinstall" with "make install DESTDIR=..."
3a66fe
- Remove package ownership of mandir/libdir/etc.
3a66fe
3a66fe
* Thu Apr 27 2006 Adam Jackson <ajackson@redhat.com> 1.1.6-1
3a66fe
- Update to 1.1.6
3a66fe
3a66fe
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> 1.1.5.2-2.2
3a66fe
- bump again for double-long bug on ppc(64)
3a66fe
3a66fe
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1.1.5.2-2.1
3a66fe
- rebuilt for new gcc4.1 snapshot and glibc changes
3a66fe
3a66fe
* Mon Jan 23 2006 Mike A. Harris <mharris@redhat.com> 1.1.5.2-2
3a66fe
- Bumped and rebuilt
3a66fe
3a66fe
* Fri Dec 16 2005 Mike A. Harris <mharris@redhat.com> 1.1.5.2-1
3a66fe
- Updated libXcursor to version 1.1.5.2 from X11R7 RC4
3a66fe
3a66fe
* Tue Dec 13 2005 Mike A. Harris <mharris@redhat.com> 1.1.5.1-1
3a66fe
- Updated libXcursor to version 1.1.5.1 from X11R7 RC3
3a66fe
- Added "Requires(pre): xorg-x11-filesystem >= 0.99.2-3", to ensure
3a66fe
  that /usr/lib/X11 and /usr/include/X11 pre-exist.
3a66fe
- Removed 'x' suffix from manpage directories to match RC3 upstream.
3a66fe
- Added default index.theme file to set BlueCurve as the default cursor theme
3a66fe
  to fix bug (#175532).
3a66fe
3a66fe
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
3a66fe
- rebuilt
3a66fe
3a66fe
* Fri Nov 11 2005 Mike A. Harris <mharris@redhat.com> 1.1.5-1
3a66fe
- Updated libXcursor to version 1.1.5 from X11R7 RC2
3a66fe
- Changed 'Conflicts: XFree86-devel, xorg-x11-devel' to 'Obsoletes'
3a66fe
- Changed 'Conflicts: XFree86-libs, xorg-x11-libs' to 'Obsoletes'
3a66fe
3a66fe
* Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 1.1.4-1
3a66fe
- Updated libXcursor to version 1.1.4 from X11R7 RC1
3a66fe
3a66fe
* Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 1.1.3-3
3a66fe
- Renamed package to remove xorg-x11 from the name due to unanimous decision
3a66fe
  between developers.
3a66fe
- Use Fedora Extras style BuildRoot tag.
3a66fe
- Disable static library creation by default.
3a66fe
- Add missing defattr to devel subpackage
3a66fe
- Add missing documentation files to doc macro
3a66fe
3a66fe
* Tue Aug 23 2005 Mike A. Harris <mharris@redhat.com> 1.1.3-2
3a66fe
- Renamed package to prepend "xorg-x11" to the name for consistency with
3a66fe
  the rest of the X11R7 packages.
3a66fe
- Added "Requires: %%{name} = %%{version}-%%{release}" dependency to devel
3a66fe
  subpackage to ensure the devel package matches the installed shared libs.
3a66fe
- Added virtual "Provides: lib<name>" and "Provides: lib<name>-devel" to
3a66fe
  allow applications to use implementation agnostic dependencies.
3a66fe
- Added post/postun scripts which call ldconfig.
3a66fe
- Added Conflicts with XFree86-libs and xorg-x11-libs to runtime package,
3a66fe
  and Conflicts with XFree86-devel and xorg-x11-devel to devel package.
3a66fe
3a66fe
* Mon Aug 22 2005 Mike A. Harris <mharris@redhat.com> 1.1.3-1
3a66fe
- Initial build.