X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=easygtk.spec;h=17b8a938d3b6c5d69b25f4f76b9d6740f1efe92f;hb=3b7d3e4505a1177b6b3f3cf3a0d592b6a34d443c;hp=d534844bc6a66ec62bdad72665618ad6a4da9c67;hpb=be31ed679cc13b86b54b852efeeb92456cc13a7f;p=packages%2Feasygtk.git diff --git a/easygtk.spec b/easygtk.spec index d534844..17b8a93 100644 --- a/easygtk.spec +++ b/easygtk.spec @@ -1,12 +1,16 @@ Summary: EasyGTK - GTK+ wrapper library Summary(pl): EasyGTK - nadzbiór funkcji GTK+ Name: easygtk -Version: 1.1.5 -Release: 2 -Copyright: GPL +Version: 1.1.6 +Release: 1 +License: GPL Group: Libraries +Group(de): Libraries +Group(es): Bibliotecas +Group(fr): Librairies Group(pl): Biblioteki -Source: http://www.linsupport.com/sw/%{name}-%{version}.tar +Source0: http://www.linsupport.com/sw/%{name}-%{version}.tar +Patch0: %{name}-Makefile.patch BuildRequires: gtk+ BuildRequires: imlib-devel BuildRequires: ImageMagick-devel @@ -17,37 +21,51 @@ BuildRequires: libungif-devel BuildRequires: libjpeg-devel BuildRequires: zlib-devel URL: http://www.linsupport.com/sw/easygtk.html -Buildroot: /tmp/%{name}-%{version}-root +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 +%define _prefix /usr/X11R6 %description EasyGTK is a wrapper library around GTK+ library to provide a much -easier and simplier Application Programming Interface to the developer. +easier and simplier Application Programming Interface to the +developer. %description -l pl -EasyGTK jest nadzbiorem funkcji GTK+ pozwalaj±cym na szybsze i ³atwiejsze -tworzenie aplikacju u¿ywaj±cych Graficznegi Interfejsu U¿ytkownika. +EasyGTK jest nadzbiorem funkcji GTK+ pozwalaj±cym na szybsze i +³atwiejsze tworzenie aplikacji u¿ywaj±cych Graficznego Interfejsu +U¿ytkownika. %prep %setup -q -n %{name} +%patch + %build ./configure -make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" +%{__make} RPM_OPT_FLAGS="%{rpmcflags}" + +# make shared library +%{__make} easygtk.so %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} -install -s libeasygtk.a $RPM_BUILD_ROOT%{_libdir} +install libeasygtk.a $RPM_BUILD_ROOT%{_libdir} +install easygtk.so $RPM_BUILD_ROOT%{_libdir}/libeasygtk.so.%{version} install easygtk.h $RPM_BUILD_ROOT%{_includedir} +gzip -9nf README + %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files %defattr(644,root,root,755) -%doc manual.html example.c testtree.c +%doc manual.html README.gz example.c testtree.c %attr(644,root,root) %{_includedir}/easygtk.h %attr(755,root,root) %{_libdir}/libeasygtk.a +%attr(755,root,root) %{_libdir}/libeasygtk.so.%{version}