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