]> git.pld-linux.org Git - projects/template-specs.git/blame - lib.spec
- subchannel reg
[projects/template-specs.git] / lib.spec
CommitLineData
3cb1cd3d 1#
66df3cad
ER
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
aed9d573 4%bcond_without static_libs # don't build static libraries
66df3cad 5#
f9986cd5 6Summary: -
ce39d734 7Summary(pl.UTF-8): -
3f8f5e5b
ER
8Name: ---
9Version: 0.1
10Release: 0.1
f9986cd5
JB
11License: - (enter GPL/LGPL/BSD/BSD-like/other license name here)
12Group: Libraries
13Source0: %{name}-%{version}.tar.gz
14# Source0-md5: -
3f8f5e5b
ER
15#Patch0: %{name}-what.patch
16#URL: -
17#BuildRequires: -
18#Requires(postun): -
19#Requires(pre,post): -
20#Requires(preun): -
21#Requires: -
22#Provides: -
23#Obsoletes: -
24#Conflicts: -
f9986cd5
JB
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28
3f8f5e5b 29#%description -l pl.UTF-8
f9986cd5
JB
30
31%package devel
32Summary: Header files for FOO library
ce39d734 33Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOO
f9986cd5 34Group: Development/Libraries
d7dd7729 35Requires: %{name} = %{version}-%{release}
f9986cd5
JB
36
37%description devel
38Header files for FOO library.
39
9be49f18
JR
40%description devel -l pl.UTF-8
41Pliki nagłówkowe biblioteki FOO.
f9986cd5
JB
42
43%package static
44Summary: Static FOO library
ce39d734 45Summary(pl.UTF-8): Statyczna biblioteka FOO
f9986cd5 46Group: Development/Libraries
d7dd7729 47Requires: %{name}-devel = %{version}-%{release}
f9986cd5
JB
48
49%description static
50Static FOO library.
51
9be49f18 52%description static -l pl.UTF-8
f9986cd5
JB
53Statyczna biblioteka FOO.
54
66df3cad
ER
55%package apidocs
56Summary: FOO API documentation
9fcce7f1 57Summary(pl.UTF-8): Dokumentacja API biblioteki FOO
66df3cad
ER
58Group: Documentation
59
60%description apidocs
61API and internal documentation for FOO library.
62
3cb1cd3d
JB
63%description apidocs -l pl.UTF-8
64Dokumentacja API biblioteki FOO.
65
f9986cd5
JB
66%prep
67%setup -q
1c854c4b 68#%patch0 -p1
f9986cd5
JB
69
70%build
c42a30cf
JB
71# if ac/am/lt/* rebuilding is necessary, do it in this order and add
72# appropriate BuildRequires
73#%{__libtoolize}
74#%{__aclocal}
75#%{__autoconf}
76#%{__autoheader}
77#%{__automake}
f6de6810
ER
78%configure \
79 %{!?with_static_libs:--disable-static}
f9986cd5
JB
80%{__make}
81
82%install
83rm -rf $RPM_BUILD_ROOT
84# create directories if necessary
85#install -d $RPM_BUILD_ROOT
86
87%{__make} install \
88 DESTDIR=$RPM_BUILD_ROOT
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%post -p /sbin/ldconfig
94%postun -p /sbin/ldconfig
95
96%files
97%defattr(644,root,root,755)
98%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
99%attr(755,root,root) %{_bindir}/*
f6de6810 100%attr(755,root,root) %{_libdir}/libFOO.so.*.*.*
f9986cd5
JB
101%{_datadir}/%{name}
102
103%files devel
104%defattr(644,root,root,755)
105%doc devel-doc/*
f6de6810
ER
106%{_libdir}/libFOO.so
107%{_libdir}/libFOO.la
f9986cd5 108%{_includedir}/foo
f6de6810
ER
109%{_aclocaldir}/FOO.m4
110%{_pkgconfigdir}/FOO.pc
f9986cd5 111
f6de6810 112%if %{with static_libs}
f9986cd5
JB
113%files static
114%defattr(644,root,root,755)
f6de6810
ER
115%{_libdir}/libFOO.a
116%endif
66df3cad 117
a5f7d790 118%if %{with apidocs}
66df3cad
ER
119%files apidocs
120%defattr(644,root,root,755)
121%doc apidocs/*
a5f7d790 122%endif
This page took 0.08014 seconds and 4 git commands to generate.