]> git.pld-linux.org Git - SPECS.git/blob - libtemplate.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / libtemplate.spec
1 # TODO:
2 # - modify the library to build dynamic-one
3 Summary:        Templates library written in C
4 Summary(pl.UTF-8):      Biblioteka szablonów napisana w C
5 Name:           libtemplate
6 Version:        1.5
7 Release:        1
8 License:        unknown
9 Group:          Libraries
10 Source0:        http://www.lazarusid.com/download/libs/%{name}-%{version}.tar.gz
11 # Source0-md5:  9b01650c4f3e51efe9cbb6a1dddcf30d
12 Patch0:         %{name}-CC.patch
13 URL:            http://www.lazarusid.com/libtemplate.shtml
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 If you're tired of recompiling your CGI program every time somebody
18 wants to change the HTML, you need to check out templates. Libtemplate
19 is an easy to use C interface that will let you use the same sort of
20 templates used in Lazarus applications.
21
22 This software is free to use on any web site, commercial or otherwise.
23 A technical support contract, including installation and compiling
24 assistance, may be purchased.
25
26 %description -l pl.UTF-8
27 Jeżeli rekompilowanie programu CGI za każdym razem kiedy ktoś chce
28 zmienić kod HTML staje się męczące, pora wybróbować szablony.
29 Libtemplate to łatwy w użyciu interfejs C pozwalający używać tego
30 samego rodzaju szablonów, co w aplikacjach Lazarusa.
31
32 Ten kod jest darmowy do używania na dowolnych stronach WWW, także
33 komercyjnych. Można natomiast opłacić wsparcie techniczne, wraz z
34 pomocą przy instalacji i kompilacji.
35
36 %package devel
37 Summary:        Header files for libtemplate library
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libtemplate
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41
42 %description devel
43 Header files for libtemplate library.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki libtemplate.
47
48 %prep
49 %setup -q
50 %patch0 -p1
51
52 %build
53 %{__make} \
54         CC="%{__cc}" \
55         CFLAGS="%{rpmcflags} -Wall -fpic"
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
60
61 %{__make} install \
62         INSTALL_DIR=$RPM_BUILD_ROOT%{_prefix} \
63         INCLUDE_DIR=$RPM_BUILD_ROOT%{_includedir} \
64         LIB_DIR=$RPM_BUILD_ROOT%{_libdir}
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc CHANGELOG template-engine.pdf
72 #%attr(755,root,root) %{_libdir}/lib*.so.*.*
73
74 %files devel
75 %defattr(644,root,root,755)
76 # XXX: move to -static after creating shared lib
77 %{_libdir}/lib*.a
78 %{_includedir}/*.h
This page took 0.665124 seconds and 3 git commands to generate.