/[packages]/cauldron/ocaml-camlzip/current/SPECS/ocaml-camlzip.spec
ViewVC logotype

Contents of /cauldron/ocaml-camlzip/current/SPECS/ocaml-camlzip.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 216312 - (show annotations) (download)
Thu Mar 1 00:08:14 2012 UTC (12 years, 1 month ago) by blue_prawn
File size: 1949 byte(s)
update to new ocamlforge location for the homepage
1 %define up_name camlzip
2 %define name ocaml-%{up_name}
3 %define version 1.04
4 %define release %mkrel 8
5
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 Summary: Reading and writing ZIP, JAR and GZIP files
10 License: LGPLv2 with exceptions
11 Group: Development/Other
12 URL: http://forge.ocamlcore.org/projects/camlzip/
13 Source0: http://forge.ocamlcore.org/frs/download.php/328/camlzip-%{version}.tar.gz
14 Patch0: %{name}-1.03-findlib.patch
15 Patch1: test-makefile.dpatch
16 Patch2: uncompress.dpatch
17 BuildRequires: ocaml
18 BuildRequires: ocaml-findlib
19 BuildRequires: zlib-devel
20
21 %description
22 This Objective Caml library provides easy access to compressed files in ZIP and
23 GZIP format, as well as to Java JAR files. It provides functions for reading
24 from and writing to compressed files in these formats.
25
26 %package devel
27 Summary: Development files for %{name}
28 Group: Development/Other
29 Requires: zlib-devel
30 Requires: %{name} = %{version}-%{release}
31
32 %description devel
33 This package contains the development files needed to build applications
34 using %{name}.
35
36 %prep
37 %setup -q -n %{up_name}-%{version}
38 %patch0 -p1
39 %patch1 -p1
40 %patch2 -p1
41 sed -i -e "s:@VERSION@:%{version}:g" META
42
43 %build
44 %make depend
45 %make all allopt
46 mkdir -p doc
47 ocamldoc -colorize-code -html gzip.mli zip.mli zlib.mli -d doc
48
49 %install
50 rm -rf %{buildroot}
51 install -d -m 755 %{buildroot}/%{_libdir}/ocaml/zip
52 install -d -m 755 %{buildroot}/%{_libdir}/ocaml/stublibs
53 make install OCAMLFIND_INSTFLAGS="-destdir %{buildroot}/%{_libdir}/ocaml"
54
55 %clean
56 rm -rf %{buildroot}
57
58 %files
59 %defattr(-,root,root)
60 %doc LICENSE README Changes
61 %dir %{_libdir}/ocaml/zip
62 %{_libdir}/ocaml/zip/*.cmi
63 %{_libdir}/ocaml/zip/*.cma
64 %{_libdir}/ocaml/zip/META
65 %{_libdir}/ocaml/stublibs/dllcamlzip.so
66 %{_libdir}/ocaml/stublibs/dllcamlzip.so.owner
67
68 %files devel
69 %defattr(-,root,root)
70 %doc test doc
71 %{_libdir}/ocaml/zip/*.a
72 %{_libdir}/ocaml/zip/*.cmx
73 %{_libdir}/ocaml/zip/*.cmxa
74 %{_libdir}/ocaml/zip/*.mli
75
76

  ViewVC Help
Powered by ViewVC 1.1.30