]> git.pld-linux.org Git - packages/lal-xml.git/blob - lal-xml.spec
- added octave patch (fix install dir); release 7
[packages/lal-xml.git] / lal-xml.spec
1 Summary:        LAL wrapping of the XML library
2 Summary(pl.UTF-8):      Obudowanie LAL do biblioteki XML
3 Name:           lal-xml
4 Version:        1.2.4
5 Release:        7
6 License:        GPL v2+
7 Group:          Libraries
8 Source0:        http://software.igwn.org/lscsoft/source/lalsuite/lalxml-%{version}.tar.xz
9 # Source0-md5:  8890f9630f59a5cc9e9c32df29f5da5c
10 Patch0:         %{name}-env.patch
11 Patch1:         %{name}-octave.patch
12 URL:            https://wiki.ligo.org/Computing/LALSuite
13 BuildRequires:  autoconf >= 2.63
14 BuildRequires:  automake >= 1:1.11
15 BuildRequires:  gsl-devel >= 1.13
16 BuildRequires:  lal-devel >= 6.18.0
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  libtool >= 2:2
19 BuildRequires:  libxml2-devel >= 1:2.6
20 BuildRequires:  octave-devel >= 1:3.2.0
21 BuildRequires:  pkgconfig
22 BuildRequires:  python3-devel
23 BuildRequires:  python3-numpy-devel
24 BuildRequires:  swig >= 4.1.0
25 BuildRequires:  swig-python >= 2.0.12
26 BuildRequires:  tar >= 1:1.22
27 BuildRequires:  xz
28 BuildRequires:  zlib-devel
29 Requires:       gsl >= 1.13
30 Requires:       lal >= 6.18.0
31 Requires:       libxml2 >= 1:2.6
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 LAL wrapping of the XML library.
36
37 %description -l pl.UTF-8
38 Obudowanie LAL do biblioteki XML.
39
40 %package devel
41 Summary:        Header files for lal-xml library
42 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki lal-xml
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45 Requires:       gsl-devel >= 1.13
46 Requires:       lal-devel >= 6.18.0
47 Requires:       libxml2-devel >= 1:2.6
48
49 %description devel
50 Header files for lal-xml library.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki lal-xml.
54
55 %package static
56 Summary:        Static lal-xml library
57 Summary(pl.UTF-8):      Statyczna biblioteka lal-xml
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static lal-xml library.
63
64 %description static -l pl.UTF-8
65 Statyczna biblioteka lal-xml.
66
67 %package -n octave-lalxml
68 Summary:        Octave interface for LAL XML
69 Summary(pl.UTF-8):      Interfejs Octave do biblioteki LAL XML
70 Group:          Applications/Math
71 Requires:       %{name} = %{version}-%{release}
72 Requires:       octave-lal >= 6.18.0
73
74 %description -n octave-lalxml
75 Octave interface for LAL XML.
76
77 %description -n octave-lalxml -l pl.UTF-8
78 Interfejs Octave do biblioteki LAL XML.
79
80 %package -n python3-lalxml
81 Summary:        Python bindings for LAL XML
82 Summary(pl.UTF-8):      Wiązania Pythona do biblioteki LAL XML
83 Group:          Libraries/Python
84 Requires:       %{name} = %{version}-%{release}
85 Requires:       python3-lal >= 6.18.0
86 Requires:       python3-modules >= 1:2.6
87 Obsoletes:      python-lalxml < 1.2.4-4
88
89 %description -n python3-lalxml
90 Python bindings for LAL XML.
91
92 %description -n python3-lalxml -l pl.UTF-8
93 Wiązania Pythona do biblioteki LAL XML.
94
95 %prep
96 %setup -q -n lalxml-%{version}
97 %patch0 -p1
98 %patch1 -p1
99
100 %build
101 %{__libtoolize}
102 %{__aclocal} -I gnuscripts
103 %{__autoconf}
104 %{__autoheader}
105 %{__automake}
106 %configure \
107         PYTHON=%{__python3} \
108         --disable-dependency-tracking \
109         --disable-silent-rules \
110         --enable-swig
111 %{__make}
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT
118
119 # obsoleted by pkg-config
120 %{__rm} $RPM_BUILD_ROOT%{_libdir}/liblalxml.la
121
122 install -d $RPM_BUILD_ROOT/etc/shrc.d
123 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/*sh $RPM_BUILD_ROOT/etc/shrc.d
124
125 %clean
126 rm -rf $RPM_BUILD_ROOT
127
128 %post   -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
130
131 %files
132 %defattr(644,root,root,755)
133 %doc AUTHORS README
134 %attr(755,root,root) %{_bindir}/lalxml_version
135 %attr(755,root,root) %{_libdir}/liblalxml.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/liblalxml.so.2
137 %{_datadir}/lalxml
138 /etc/shrc.d/lalxml-user-env.csh
139 /etc/shrc.d/lalxml-user-env.fish
140 /etc/shrc.d/lalxml-user-env.sh
141
142 %files devel
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_libdir}/liblalxml.so
145 %{_includedir}/lal/LALXML*.h
146 %{_includedir}/lal/SWIGLALXML*.h
147 %{_includedir}/lal/SWIGLALXML*.i
148 %{_includedir}/lal/swiglalxml.i
149 %{_pkgconfigdir}/lalxml.pc
150
151 %files static
152 %defattr(644,root,root,755)
153 %{_libdir}/liblalxml.a
154
155 %files -n octave-lalxml
156 %defattr(644,root,root,755)
157 %attr(755,root,root) %{_libdir}/octave/*/site/oct/*/lalxml.oct
158
159 %files -n python3-lalxml
160 %defattr(644,root,root,755)
161 %dir %{py3_sitedir}/lalxml
162 %attr(755,root,root) %{py3_sitedir}/lalxml/_lalxml.so
163 %{py3_sitedir}/lalxml/*.py
164 %{py3_sitedir}/lalxml/__pycache__
This page took 0.067169 seconds and 3 git commands to generate.