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