]> git.pld-linux.org Git - packages/arts++.git/blob - arts++.spec
- up to 1.1.a12
[packages/arts++.git] / arts++.spec
1 Summary:        Library for handling ARTS data files
2 Summary(pl):    Biblioteka do obs³ugi plików danych ARTS
3 Name:           arts++
4 Version:        1.1.a12
5 Release:        1
6 Epoch:          0
7 License:        GPL
8 Group:          Libraries
9 Source0:        http://www.caida.org/tools/utilities/arts/download/%{name}-%{version}.tar.gz
10 # Source0-md5:  bb0afcc952c4cf5864342b68380f9ffc
11 Patch0:         %{name}-gcc3.patch
12 Patch1:         %{name}-nolibs.patch
13 Patch2:         %{name}-printf.patch
14 URL:            http://www.caida.org/tools/utilities/arts/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  flex
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libtool >= 2:1.4d
20 BuildRequires:  perl-base
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _includedir     %{_prefix}/include/%{name}
24
25 %description
26 arts++ is a set of C++ classes and applications for handling ARTS data
27 files produced by CAIDA software (cflowd and skitter).
28
29 %description -l pl
30 arts++ to zbiór klas C++ i aplikacji do obs³ugi plików danych ARTS
31 tworzonych przez oprogramowanie CAIDA (cflowd i skitter).
32
33 %package devel
34 Summary:        Header files and development documentation for arts++
35 Summary(pl):    Pliki nag³ówkowe i dokumentacja programisty dla arts++
36 Group:          Development/Libraries
37 Requires:       %{name} = %{epoch}:%{version}-%{release}
38 Requires:       libstdc++-devel
39
40 %description devel
41 Header files and development documentation for arts++.
42
43 %description devel -l pl
44 Pliki nag³ówkowe i dokumentacja programisty dla arts++.
45
46 %package static
47 Summary:        Static arts++ library
48 Summary(pl):    Statyczna biblioteka arts++
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
51
52 %description static
53 Static arts++ library.
54
55 %description static -l pl
56 Statyczna biblioteka arts++.
57
58 %prep
59 %setup -q
60 #%patch0 -p1
61 %patch1 -p1
62 %patch2 -p1
63
64 find . -name Makefile.in | xargs \
65         %{__perl} -pi -e 's/(\@(include|lib|bin|man)dir\@)/\$(DESTDIR)$1/g;
66         s/-m 444/-m 644/g;s/-m 555/-m 755/g'
67
68 %{__perl} -pi -e 's/-m 644//' classes/src/Makefile.in
69 %{__perl} -pi -e 's/manl/man1/;s/\.l$/\.1/' apps/*/Makefile.in
70 %{__perl} -pi -e 's/l LOCAL/1 LOCAL/' apps/*/*.man
71
72 %build
73 chmod u+w *.m4 configure
74 %{__libtoolize}
75 %{__aclocal}
76 %{__autoconf}
77 %configure \
78         --enable-shared
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{_includedir}
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 %doc ChangeLog doc/*.html
97 %attr(755,root,root) %{_bindir}/*
98 %attr(755,root,root) %{_libdir}/lib*.so.*.*
99 %{_mandir}/man1/*.1*
100
101 %files devel
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/lib*.so
104 %{_libdir}/lib*.la
105 %{_includedir}
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/lib*.a
This page took 0.072881 seconds and 4 git commands to generate.