]>
Commit | Line | Data |
---|---|---|
9e9e618a | 1 | Summary: LAL wrapping of the MetaIO LIGO_LW XML library |
1e04fb1a | 2 | Summary(pl.UTF-8): Obudowanie LAL do biblioteki MetaIO LILO_LW XML |
9e9e618a | 3 | Name: lal-metaio |
bf597e69 | 4 | Version: 2.0.3 |
02cc013b | 5 | Release: 2 |
1e04fb1a | 6 | License: GPL v2+ |
9e9e618a | 7 | Group: Libraries |
1e04fb1a | 8 | Source0: http://software.ligo.org/lscsoft/source/lalsuite/lalmetaio-%{version}.tar.xz |
bf597e69 | 9 | # Source0-md5: 01b35a9b283ff8e9b614e0c0db3a2245 |
1e04fb1a JB |
10 | Patch0: %{name}-env.patch |
11 | URL: https://wiki.ligo.org/DASWG/LALSuite | |
df2009e2 JB |
12 | BuildRequires: autoconf >= 2.63 |
13 | BuildRequires: automake >= 1:1.11 | |
1e04fb1a JB |
14 | BuildRequires: lal-devel >= 6.18.0 |
15 | BuildRequires: libstdc++-devel | |
df2009e2 | 16 | BuildRequires: libtool >= 2:2 |
1e04fb1a JB |
17 | BuildRequires: metaio-devel |
18 | BuildRequires: octave-devel >= 1:3.2.0 | |
19 | BuildRequires: pkgconfig | |
bf597e69 JR |
20 | BuildRequires: python3-devel |
21 | BuildRequires: python3-numpy-devel | |
1e04fb1a JB |
22 | BuildRequires: swig >= 3.0.12 |
23 | BuildRequires: swig-python >= 2.0.12 | |
24 | BuildRequires: tar >= 1:1.22 | |
25 | BuildRequires: xz | |
26 | BuildRequires: zlib-devel | |
27 | Requires: lal >= 6.18.0 | |
9e9e618a ZU |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | LAL wrapping of the MetaIO LIGO_LW XML library. | |
32 | ||
1e04fb1a JB |
33 | %description -l pl.UTF-8 |
34 | Obudowanie LAL do biblioteki MetaIO LILO_LW XML. | |
35 | ||
9e9e618a ZU |
36 | %package devel |
37 | Summary: Header files for lal-metaio library | |
1e04fb1a | 38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lal-metaio |
9e9e618a ZU |
39 | Group: Development/Libraries |
40 | Requires: %{name} = %{version}-%{release} | |
1e04fb1a JB |
41 | Requires: lal-devel >= 6.18.0 |
42 | Requires: metaio-devel | |
9e9e618a ZU |
43 | |
44 | %description devel | |
45 | Header files for lal-metaio library. | |
46 | ||
1e04fb1a JB |
47 | %description devel -l pl.UTF-8 |
48 | Pliki nagłówkowe biblioteki lal-metaio. | |
49 | ||
9e9e618a ZU |
50 | %package static |
51 | Summary: Static lal-metaio library | |
1e04fb1a | 52 | Summary(pl.UTF-8): Statyczna biblioteka lal-metaio |
9e9e618a ZU |
53 | Group: Development/Libraries |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static lal-metaio library. | |
58 | ||
1e04fb1a JB |
59 | %description static -l pl.UTF-8 |
60 | Statyczna biblioteka lal-metaio. | |
61 | ||
62 | %package -n octave-lalmetaio | |
63 | Summary: Octave interface for LAL MetaIO | |
64 | Summary(pl.UTF-8): Interfejs Octave do biblioteki LAL MetaIO | |
65 | Group: Applications/Math | |
66 | Requires: %{name} = %{version}-%{release} | |
67 | Requires: octave-lal >= 6.18.0 | |
68 | ||
69 | %description -n octave-lalmetaio | |
70 | Octave interface for LAL MetaIO. | |
71 | ||
72 | %description -n octave-lalmetaio -l pl.UTF-8 | |
73 | Interfejs Octave do biblioteki LAL MetaIO. | |
74 | ||
bf597e69 | 75 | %package -n python3-lalmetaio |
1e04fb1a JB |
76 | Summary: Python bindings for LAL MetaIO |
77 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki LAL MetaIO | |
78 | Group: Libraries/Python | |
79 | Requires: %{name} = %{version}-%{release} | |
bf597e69 JR |
80 | Requires: python3-lal >= 6.18.0 |
81 | Requires: python3-modules >= 1:2.6 | |
1e04fb1a | 82 | |
bf597e69 | 83 | %description -n python3-lalmetaio |
1e04fb1a JB |
84 | Python bindings for LAL MetaIO. |
85 | ||
bf597e69 | 86 | %description -n python3-lalmetaio -l pl.UTF-8 |
1e04fb1a JB |
87 | Wiązania Pythona do biblioteki LAL MetaIO. |
88 | ||
9e9e618a ZU |
89 | %prep |
90 | %setup -q -n lalmetaio-%{version} | |
1e04fb1a | 91 | %patch0 -p1 |
9e9e618a ZU |
92 | |
93 | %build | |
1e04fb1a JB |
94 | %{__libtoolize} |
95 | %{__aclocal} -I gnuscripts | |
96 | %{__autoconf} | |
97 | %{__autoheader} | |
98 | %{__automake} | |
99 | %configure \ | |
100 | --disable-silent-rules \ | |
101 | --enable-swig | |
9e9e618a ZU |
102 | %{__make} |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
1e04fb1a JB |
110 | # obsoleted by pkg-config |
111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/liblalmetaio.la | |
112 | ||
9e9e618a | 113 | install -d $RPM_BUILD_ROOT/etc/shrc.d |
1e04fb1a JB |
114 | %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/*sh $RPM_BUILD_ROOT/etc/shrc.d |
115 | ||
9e9e618a ZU |
116 | %clean |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %post -p /sbin/ldconfig | |
120 | %postun -p /sbin/ldconfig | |
121 | ||
122 | %files | |
123 | %defattr(644,root,root,755) | |
9df53769 | 124 | %doc AUTHORS README.md |
1e04fb1a JB |
125 | %attr(755,root,root) %{_bindir}/lalmetaio_version |
126 | %attr(755,root,root) %{_libdir}/liblalmetaio.so.*.*.* | |
bf597e69 | 127 | %attr(755,root,root) %ghost %{_libdir}/liblalmetaio.so.8 |
1e04fb1a JB |
128 | /etc/shrc.d/lalmetaio-user-env.csh |
129 | /etc/shrc.d/lalmetaio-user-env.fish | |
130 | /etc/shrc.d/lalmetaio-user-env.sh | |
9e9e618a ZU |
131 | |
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
df2009e2 | 134 | %attr(755,root,root) %{_libdir}/liblalmetaio.so |
1e04fb1a JB |
135 | %{_includedir}/lal/LALMetaIO*.h |
136 | %{_includedir}/lal/LIGOLwXML*.h* | |
137 | %{_includedir}/lal/LIGOMetadata*.h | |
138 | %{_includedir}/lal/SWIGLALMetaIO*.h | |
139 | %{_includedir}/lal/SWIGLALMetaIO*.i | |
140 | %{_includedir}/lal/swiglalmetaio.i | |
141 | %{_pkgconfigdir}/lalmetaio.pc | |
9e9e618a ZU |
142 | |
143 | %files static | |
144 | %defattr(644,root,root,755) | |
1e04fb1a JB |
145 | %{_libdir}/liblalmetaio.a |
146 | ||
147 | %files -n octave-lalmetaio | |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_libdir}/octave/*/site/oct/*/lalmetaio.oct | |
150 | ||
bf597e69 | 151 | %files -n python3-lalmetaio |
1e04fb1a | 152 | %defattr(644,root,root,755) |
bf597e69 JR |
153 | %dir %{py3_sitedir}/lalmetaio |
154 | %attr(755,root,root) %{py3_sitedir}/lalmetaio/_lalmetaio.so | |
155 | %{py3_sitedir}/lalmetaio/*.py | |
156 | %{py3_sitedir}/lalmetaio/__pycache__ |