]> git.pld-linux.org Git - packages/arts++.git/blobdiff - arts++.spec
- tabs in preamble
[packages/arts++.git] / arts++.spec
index f676b417e65096f25f40e98d89db19325af0b919..5269ea5549538d52e78c1b194614d8b52fb7b96a 100644 (file)
 Summary:       Library for handling ARTS data files
+Summary(pl.UTF-8):     Biblioteka do obsługi plików danych ARTS
 Name:          arts++
-Version:       1.1.a8
+Version:       1.1.a12
 Release:       1
+Epoch:         0
 License:       GPL
 Group:         Libraries
-Source0:       ftp://ftp.caida.org/pub/arts++/arts++-1-1-a8.tar.gz
-# Source0-md5: d41d8cd98f00b204e9800998ecf8427e
-BuildRequires: motif-devel
-BuildRequires: XFree86-devel
+Source0:       http://www.caida.org/tools/utilities/arts/download/%{name}-%{version}.tar.gz
+# Source0-md5: bb0afcc952c4cf5864342b68380f9ffc
+Patch0:                %{name}-nolibs.patch
+Patch1:                %{name}-printf.patch
+URL:           http://www.caida.org/tools/utilities/arts/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: flex
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.4d
+BuildRequires: perl-base
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _includedir     %{_prefix}/include/%{name}
+
 %description
 arts++ is a set of C++ classes and applications for handling ARTS data
 files produced by CAIDA software (cflowd and skitter).
 
+%description -l pl.UTF-8
+arts++ to zbiór klas C++ i aplikacji do obsługi plików danych ARTS
+tworzonych przez oprogramowanie CAIDA (cflowd i skitter).
+
 %package devel
-Summary:       Header files and develpment documentation for arts++
+Summary:       Header files and development documentation for arts++
+Summary(pl.UTF-8):     Pliki nagłówkowe i dokumentacja programisty dla arts++
 Group:         Development/Libraries
-Requires:      %{name} = %{epoch}:%{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      libstdc++-devel
 
 %description devel
-Header files and develpment documentation for arts++.
+Header files and development documentation for arts++.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i dokumentacja programisty dla arts++.
 
 %package static
 Summary:       Static arts++ library
+Summary(pl.UTF-8):     Statyczna biblioteka arts++
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{epoch}:%{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 Static arts++ library.
 
+%description static -l pl.UTF-8
+Statyczna biblioteka arts++.
+
 %prep
-%setup  -q -n %{name}-1-1-a8
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+find . -name Makefile.in | xargs \
+       %{__perl} -pi -e 's/(\@(include|lib|bin|man)dir\@)/\$(DESTDIR)$1/g;
+       s/-m 444/-m 644/g;s/-m 555/-m 755/g'
+
+%{__perl} -pi -e 's/-m 644//' classes/src/Makefile.in
+%{__perl} -pi -e 's/manl/man1/;s/\.l$/\.1/' apps/*/Makefile.in
+%{__perl} -pi -e 's/l LOCAL/1 LOCAL/' apps/*/*.man
 
 %build
-install %{_datadir}/automake/config.* .
-%configure2_13
+chmod u+w *.m4 configure
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%configure \
+       --enable-shared
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_includedir}/net \
-       $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man3}
+install -d $RPM_BUILD_ROOT%{_includedir}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc README CHANGES CREDITS
+%doc ChangeLog doc/*.html
+%attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
+%{_mandir}/man1/*.1*
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so
-%{_includedir}/*.h
-%{_includedir}/net/*.h
-%{_mandir}/man?/*
+%{_libdir}/lib*.la
+%{_includedir}
 
 %files static
 %defattr(644,root,root,755)
This page took 0.067869 seconds and 4 git commands to generate.