File: cif-api.spec

package info (click to toggle)
cif-api 0.4.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,472 kB
  • sloc: ansic: 19,411; lex: 246; makefile: 201; sql: 164; yacc: 115; sh: 37
file content (124 lines) | stat: -rw-r--r-- 3,137 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Name:           cif-api
Version:        0.4.2
Release:        1%{?dist}
Summary:        The CIF API runtime library and standard programs

Group:          System Environment / Libraries
License:        LGPLv3+
URL:            https://github.com/COMCIFS/cif_api
Source0:        %{name}-%{version}.tar.gz

BuildRequires:  pkgconfig(icu)
BuildRequires:  sqlite-devel >= 3.6.19

%global _hardened_build 1


%description
The Crystallographic Information File (CIF) format is a text-based data
archiving and exchange format widely used in the field of Crystallography.
The CIF API is one of several libraries useful to software developers for 
adding CIF import and export capabilities to their programs.  It is
distinguished by being one of the first to support version 2.0 of CIF;
it supports all known earlier versions as well, and can distinguish
between them automatically.

This package contains the CIF API runtime library, and standard programs
cif2_syncheck and cif_linguist.


%package devel
Summary:        The CIF API header files and development library
Group:          Development / Libraries

Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       pkgconfig(icu)
Requires:       sqlite3-devel >= 3.6.19


%description devel
This package contains the CIF API public header files, development library,
and API documentation.


%prep
%setup -q


%build

# Note: configure --without-docs because docs get installed in docdir/html,
#       which rpmbuild subsequently clobbers.  We kludge around this
#       rpmbuild misbehavior in the %%install and %%files scriptlets.
%configure \
  --with-examples \
  --with-linguist \
  --without-docs \
  --disable-maintainer-mode \
  --disable-dependency-tracking

# Suppress inclusion of an RPATH in the library
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

make %{?_smp_mflags}


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

cp -pR dox-html html

# These example programs are useful only for demonstration purposes:
rm %{buildroot}%{_bindir}/cif2_addauthor
rm %{buildroot}%{_bindir}/cif2_table1
rm %{buildroot}%{_bindir}/cif2_table3

# Also not wanted in the package:
rm %{buildroot}%{_libdir}/libcif.la

%check

# LD_LIBRARY_PATH is necessary because we have suppressed RPATH from
# being embedded in the executables, including the tests.
export LD_LIBRARY_PATH=`pwd`/src/.libs

make check


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING COPYING.LESSER README ReleaseNotes extras
%{_bindir}/cif2_syncheck
%{_bindir}/cif_linguist
%{_libdir}/libcif.so.*


%files devel
%defattr(-,root,root,-)
#%{_datadir}/doc/%{name}-%{version}/html
%doc html
%{_includedir}/cif.h
%{_includedir}/cif_error.h
%{_libdir}/libcif.so
%{_libdir}/pkgconfig


%post -p /sbin/ldconfig


%postun -p /sbin/ldconfig


%changelog
* Mon Jan 11 2016 John Bollinger <John.Bollinger@StJude.org> 0.4.2-1
- Updated to version 0.4.2

* Fri Oct 30 2015 John Bollinger <John.Bollinger@StJude.org> 0.4.1-1
- Initial spec (Autoconf template)