]> git.pld-linux.org Git - packages/apache-mod_xslt2.git/blob - apache-mod_xslt2.spec
- postun dep is autogenerated
[packages/apache-mod_xslt2.git] / apache-mod_xslt2.spec
1 %define         mod_name        xslt
2 %define         apxs            /usr/sbin/apxs
3 Summary:        Module to serve XML based content
4 Summary(pl):    Modu³ do udostêpniania dokumentów XML
5 Name:           apache-mod_%{mod_name}2
6 Version:        1.3.6
7 %define         snap    2004083000
8 Release:        1
9 License:        GPL
10 Group:          Networking/Daemons
11 Source0:        http://www.mod-xslt2.com/software/archive/%{snap}/modxslt-%{snap}.tar.gz
12 # Source0-md5:  8ebd2bc8ffcb555d001e4aad925103ed
13 Source1:        %{name}.conf
14 Patch0:         %{name}-makefile.patch
15 URL:            http://www.mod-xslt2.com/
16 BuildRequires:  %{apxs}
17 BuildRequires:  apache-devel
18 BuildRequires:  libxslt-devel
19 BuildRequires:  pcre-devel
20 Requires(post): /sbin/ldconfig
21 Requires(post,preun):   %{apxs}
22 Conflicts:      apache-mod_xslt
23 Obsoletes:      apache-mod_xslt
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR)
27 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR)
28
29 %description
30 mod_xslt is a simple Apache module to serve XML based content. Data is
31 stored in XML files on the server. The user requests the XML file and
32 the translation method via a url such as this:
33 http://localhost/sourcefile.html. The module will parse this URL into
34 a XML source file and an XSL source file. In the example above, the
35 XML file will be sourcefile.xml. The module will open sourcefile.xml
36 and determine its DOCTYPE. Based on the DOCTYPE, the XSL file will be
37 opened. Should the DOCTYPE be "tutorial", the XSL file opened would be
38 tutorial_html.xsl. The content-type returned to the browser is
39 text/html. The translation occurs transparently to the user.
40
41 %description -l pl
42 mod_xslt jest prostym modu³em Apache do udostêpniania dokumentów XML.
43 Dane s± zapisane w plikach XML na serwerze. U¿ytkownik ¿±da pliku XML
44 i t³umaczenia poprzez URL w stylu http://localhost/sourcefile.html.
45 Modu³ zamienia ten URL na pliki ¼ród³owe XML i XSL. W tym przyk³adzie
46 plikiem XML bêdzie sourcefile.xml. Modu³ otworzy plik sourcefile.xml i
47 okre¶li DOCTYPE, na podstawie którego otworzy odpowiedni plik XSL.
48 Je¿eli DOCTYPE jest "tutorial", plikiem XSL bêdzie tutorial_html.xsl.
49 Nastêpnie modu³ dokona przetwarzania pliku XML za pomoc± arkusza XSLT
50 i zwróci przegl±darce powsta³y w ten sposób text/html. Ca³y proces
51 odbywa siê w sposób niewidoczny dla u¿ytkownika.
52
53 %package devel
54 Summary:        Development headers for mod_xslt2
55 Summary(pl):    Pliki nag³ówkowe mod_xslt2
56 Group:          Development/Libraries
57 Requires:       %{name} = %{version}-%{release}
58
59 %description devel
60 development headers for mod_xslt2.
61
62 %package static
63 Summary:        Static mod_xslt2 library
64 Summary(pl):    Statyczna biblioteka mod_xslt2
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{version}-%{release}
67
68 %description static
69 Static mod_xslt2 library.
70
71 %description static -l pl
72 Statyczna biblioteka mod_xslt2.
73
74 %prep
75 %setup -q -n mod%{mod_name}-%{snap}
76 %patch0 -p1
77
78 %build
79 %configure
80 %{__make} \
81         APXS=%{apxs}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/70_mod_xslt2.conf
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post
96 /sbin/ldconfig
97 if [ -f /var/lock/subsys/httpd ]; then
98         /etc/rc.d/init.d/httpd restart 1>&2
99 fi
100
101 %preun
102 if [ "$1" = "0" ]; then
103         if [ -f /var/lock/subsys/httpd ]; then
104                 /etc/rc.d/init.d/httpd restart 1>&2
105         fi
106 fi
107
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*
113 %attr(755,root,root) %{_pkglibdir}/*
114 %attr(755,root,root) %{_libdir}/libmodxslt0.so.*.*.*
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/*
119 %{_libdir}/*.la
120 %{_includedir}/modxslt0
121
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/*.a
This page took 0.072837 seconds and 3 git commands to generate.