parent
e1913967c0
commit
8b639fa0d4
53
fltk.spec
53
fltk.spec
@ -2,7 +2,7 @@
|
|||||||
Summary: C++ user interface toolkit
|
Summary: C++ user interface toolkit
|
||||||
Name: fltk
|
Name: fltk
|
||||||
Version: 1.1.7
|
Version: 1.1.7
|
||||||
Release: 3%{?dist}.1
|
Release: 4%{?dist}
|
||||||
|
|
||||||
License: LGPL with exceptions
|
License: LGPL with exceptions
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -10,7 +10,8 @@ URL: http://www.fltk.org/
|
|||||||
Source0: http://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.bz2
|
Source0: http://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
Source1: fluid.desktop
|
# See http://bugzilla.redhat.com/199656
|
||||||
|
Patch1: fltk-1.1.7-config.patch
|
||||||
|
|
||||||
%if 0%{?rhel} > 4 || 0%{?fedora} > 4
|
%if 0%{?rhel} > 4 || 0%{?fedora} > 4
|
||||||
BuildRequires: libICE-devel libSM-devel
|
BuildRequires: libICE-devel libSM-devel
|
||||||
@ -24,9 +25,7 @@ BuildRequires: zlib-devel
|
|||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: libGL-devel libGLU-devel
|
BuildRequires: libGL-devel libGLU-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: ImageMagick
|
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: man
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development package for %{name}
|
Summary: Development package for %{name}
|
||||||
@ -69,32 +68,46 @@ interactive GUI designer for FLTK.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{?extraversion}
|
%setup -q -n %{name}-%{version}%{?extraversion}
|
||||||
|
|
||||||
|
%patch1 -p1 -b .199656
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl -pi -e "s^\\\$prefix/share/doc/fltk^$RPM_DOC_DIR/%{name}-devel-%{version}^" configure
|
|
||||||
export CPPFLAGS="$(pkg-config xft --cflags)"
|
export CPPFLAGS="$(pkg-config xft --cflags)"
|
||||||
export LDFLAGS="$(pkg-config xft --libs)"
|
export LDFLAGS="$(pkg-config xft --libs)"
|
||||||
|
|
||||||
%configure --enable-shared --enable-threads --enable-xdbe --enable-xft
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-threads \
|
||||||
|
--enable-xdbe \
|
||||||
|
--enable-xft
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT __documentation
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%makeinstall docdir=$(pwd)/__documentation
|
make install install-desktop DESTDIR=$RPM_BUILD_ROOT
|
||||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
|
|
||||||
|
|
||||||
desktop-file-install --vendor=fedora \
|
desktop-file-install --vendor=%{name} \
|
||||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
||||||
%{SOURCE1}
|
--add-category="Development" \
|
||||||
|
--add-category="GUIDesigner" \
|
||||||
|
--delete-original \
|
||||||
|
$RPM_BUILD_ROOT%{_datadir}/applnk/Development/*.desktop
|
||||||
|
|
||||||
convert -resize 48x48 documentation/FL.gif fluid.png
|
# docs
|
||||||
install -p -m644 -D fluid.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/fluid.png
|
rm -rf __docs
|
||||||
|
mv $RPM_BUILD_ROOT%{_docdir}/fltk __docs
|
||||||
|
|
||||||
## unpackaged files
|
## unpackaged files
|
||||||
|
# errant docs
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
|
||||||
# static libs
|
# static libs
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
|
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
|
||||||
|
# games: checkers/sudoku
|
||||||
|
make -C test uninstall-linux DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man?/{sudoku,checkers}*
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -107,9 +120,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%post fluid
|
%post fluid
|
||||||
touch --no-create %{_datadir}/icons/hicolor ||:
|
touch --no-create %{_datadir}/icons/hicolor ||:
|
||||||
|
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
||||||
|
update-desktop-database >& /dev/null ||:
|
||||||
|
|
||||||
%postun fluid
|
%postun fluid
|
||||||
touch --no-create %{_datadir}/icons/hicolor ||:
|
touch --no-create %{_datadir}/icons/hicolor ||:
|
||||||
|
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
||||||
|
update-desktop-database >& /dev/null ||:
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -122,10 +139,10 @@ touch --no-create %{_datadir}/icons/hicolor ||:
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc __documentation/*
|
%doc __docs/*
|
||||||
%{_bindir}/fltk-config
|
%{_bindir}/fltk-config
|
||||||
%{_includedir}/FL/
|
%{_includedir}/FL/
|
||||||
%{_includedir}/Fl/
|
%{_includedir}/Fl
|
||||||
%{_libdir}/libfltk.so
|
%{_libdir}/libfltk.so
|
||||||
%{_libdir}/libfltk_forms.so
|
%{_libdir}/libfltk_forms.so
|
||||||
%{_libdir}/libfltk_gl.so
|
%{_libdir}/libfltk_gl.so
|
||||||
@ -138,10 +155,16 @@ touch --no-create %{_datadir}/icons/hicolor ||:
|
|||||||
%{_bindir}/fluid
|
%{_bindir}/fluid
|
||||||
%{_mandir}/man1/fluid.1*
|
%{_mandir}/man1/fluid.1*
|
||||||
%{_datadir}/applications/*fluid.desktop
|
%{_datadir}/applications/*fluid.desktop
|
||||||
|
# FIXME
|
||||||
|
%{_datadir}/mimelnk/*/*.desktop
|
||||||
%{_datadir}/icons/hicolor/*/*/*
|
%{_datadir}/icons/hicolor/*/*/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-4
|
||||||
|
- use included icon/.desktop files
|
||||||
|
- fix up fltk-config (#199656)
|
||||||
|
|
||||||
* Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-3
|
* Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-3
|
||||||
- follow icon spec
|
- follow icon spec
|
||||||
- omit static libs
|
- omit static libs
|
||||||
|
Loading…
Reference in New Issue
Block a user