]>
Commit | Line | Data |
---|---|---|
85cc8e94 | 1 | # |
5cb5f324 | 2 | # TODO: |
3 | # - make dynamic/static library | |
4 | ||
85cc8e94 | 5 | Summary: elfio |
241690c9 | 6 | Summary(pl.UTF-8): elfio |
85cc8e94 | 7 | Name: libelfio |
8 | Version: 1.0.3 | |
9 | Release: 0.1 | |
10 | License: - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here) | |
11 | Group: Applications | |
12 | Source0: http://dl.sourceforge.net/elfio/ELFIO-%{version}.tar.gz | |
13 | # Source0-md5: fd6fca12c7b43f6c01d30b23d22aaefe | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | ||
2523b3e3 | 18 | %description -l pl.UTF-8 |
85cc8e94 | 19 | |
20 | %package subpackage | |
21 | Summary: - | |
241690c9 | 22 | Summary(pl.UTF-8): - |
85cc8e94 | 23 | Group: - |
24 | ||
25 | %description subpackage | |
26 | ||
2523b3e3 | 27 | %description subpackage -l pl.UTF-8 |
85cc8e94 | 28 | |
29 | %package libs | |
30 | Summary: - | |
241690c9 | 31 | Summary(pl.UTF-8): - |
85cc8e94 | 32 | Group: Libraries |
33 | ||
34 | %description libs | |
35 | ||
2523b3e3 | 36 | %description libs -l pl.UTF-8 |
85cc8e94 | 37 | |
38 | %package devel | |
39 | Summary: Header files for ... library | |
241690c9 | 40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ... |
85cc8e94 | 41 | Group: Development/Libraries |
42 | # if base package contains shared library for which these headers are | |
43 | #Requires: %{name} = %{version}-%{release} | |
44 | # if -libs package contains shared library for which these headers are | |
45 | #Requires: %{name}-libs = %{version}-%{release} | |
46 | ||
47 | %description devel | |
48 | Header files for ... library. | |
49 | ||
2523b3e3 JR |
50 | %description devel -l pl.UTF-8 |
51 | Pliki nagłówkowe biblioteki .... | |
85cc8e94 | 52 | |
53 | %package static | |
54 | Summary: Static ... library | |
241690c9 | 55 | Summary(pl.UTF-8): Statyczna biblioteka ... |
85cc8e94 | 56 | Group: Development/Libraries |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static ... library. | |
61 | ||
2523b3e3 | 62 | %description static -l pl.UTF-8 |
85cc8e94 | 63 | Statyczna biblioteka .... |
64 | ||
65 | %prep | |
66 | %setup -q -n ELFIO-%{version} | |
67 | ||
68 | %build | |
69 | ##%{__libtoolize} | |
70 | ##%{__aclocal} | |
71 | #3%{__autoconf} | |
72 | ##%{__autoheader} | |
73 | ##%{__automake} | |
74 | #cp -f /usr/share/automake/config.sub . | |
75 | %configure | |
76 | %{__make} | |
77 | ||
78 | #%{__make} \ | |
79 | # CFLAGS="%{rpmcflags}" \ | |
80 | # LDFLAGS="%{rpmldflags}" | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | # create directories if necessary | |
85 | #install -d $RPM_BUILD_ROOT | |
86 | #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %pre | |
95 | ||
96 | %post | |
97 | ||
98 | %preun | |
99 | ||
100 | %postun | |
101 | ||
102 | %if %{with ldconfig} | |
103 | %post -p /sbin/ldconfig | |
104 | %postun -p /sbin/ldconfig | |
105 | %endif | |
106 | ||
107 | %files | |
108 | %defattr(644,root,root,755) | |
109 | %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
110 | ||
111 | %if 0 | |
112 | # if _sysconfdir != /etc: | |
113 | #%%dir %{_sysconfdir} | |
114 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
115 | %attr(755,root,root) %{_bindir}/* | |
116 | %{_datadir}/%{name} | |
117 | %endif | |
118 | ||
119 | #%{_examplesdir}/%{name}-%{version} | |
120 | ||
121 | %if %{with subpackage} | |
122 | %files subpackage | |
123 | %defattr(644,root,root,755) | |
124 | #%doc extras/*.gz | |
125 | #%{_datadir}/%{name}-ext | |
126 | %endif |