107 lines
2.8 KiB
RPMSpec
107 lines
2.8 KiB
RPMSpec
Name: adime
|
|
Version: 2.2.1
|
|
Release: 4%{?dist}
|
|
Summary: Allegro Dialogs Made Easy
|
|
Group: System Environment/Libraries
|
|
License: zlib License
|
|
URL: http://adime.sourceforge.net/
|
|
Source0: http://dl.sf.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
|
|
Patch0: adime-2.2.1-so-fixes.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: allegro-devel texinfo
|
|
|
|
%description
|
|
Adime is a portable add-on library for Allegro with functions for generating
|
|
Allegro dialogs in a very simple way. Its main purpose is to give as easy an
|
|
API as possible to people who want dialogs for editing many kinds of input
|
|
data.
|
|
|
|
|
|
%package devel
|
|
Summary: Development libraries and headers for adime
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}
|
|
Requires: allegro-devel
|
|
Requires(post): /sbin/install-info
|
|
Requires(preun): /sbin/install-info
|
|
|
|
%description devel
|
|
The developmental files that must be installed in order to compile
|
|
applications which use adime.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1 -z .so-fixes
|
|
./fix.sh unix
|
|
rm docs/txt/tmpfile.txt
|
|
mkdir docs/html docs/rtf
|
|
|
|
|
|
%build
|
|
make %{?_smp_mflags} lib docs \
|
|
CFLAGS="-fPIC -DPIC $RPM_OPT_FLAGS" \
|
|
CFLAGS_NO_OPTIMIZE="-fPIC -DPIC $RPM_OPT_FLAGS" \
|
|
LFLAGS=-g
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install install-man install-info \
|
|
SYSTEM_DIR=$RPM_BUILD_ROOT/usr \
|
|
SYSTEM_LIB_DIR=$RPM_BUILD_ROOT%{_libdir} \
|
|
SYSTEM_MAN_DIR=$RPM_BUILD_ROOT%{_mandir} \
|
|
SYSTEM_INFO_DIR=$RPM_BUILD_ROOT%{_infodir}
|
|
rm $RPM_BUILD_ROOT%{_infodir}/dir
|
|
ln -s libadime.so.0 $RPM_BUILD_ROOT%{_libdir}/libadime.so
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%post devel
|
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
%preun devel
|
|
if [ $1 = 0 ]; then
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
fi
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc license.txt thanks.txt changes.txt
|
|
%{_libdir}/libadime.so.0
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc readme.txt docs/txt/*.txt docs/rtf docs/html
|
|
%{_includedir}/adime.h
|
|
%{_includedir}/adime
|
|
%{_libdir}/libadime.so
|
|
%{_mandir}/man3/*
|
|
%{_infodir}/adime.info.gz
|
|
|
|
|
|
%changelog
|
|
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.2.1-4
|
|
- FE6 Rebuild
|
|
|
|
* Sun Mar 12 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.2.1-3
|
|
- change license to "zlib License"
|
|
- modify adime-2.2.1-so-fixes.patch to strip -lalleg_unshareble from
|
|
allegro-config --libs output instead of using a hardcoded allegro linkerflag
|
|
|
|
* Sun Mar 12 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.2.1-2
|
|
- add BR texinfo
|
|
- mkdir docs/html and docs/rtf during %%prep to make "make docs" happy, include
|
|
the results in %%doc
|
|
- don't link liballeg_unsharable.a into our .so.0 file
|
|
|
|
* Sat Mar 11 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.2.1-1
|
|
- Initial Fedora Extras package
|