summaryrefslogtreecommitdiff
path: root/packaging/libijs.spec
blob: b1a89b07c2a3c88bb84b0f482079ab998cc1e0ab (plain)
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
#
# spec file for package lcms (Version 1.19)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           libijs
License:        MIT License
Group:          System/Libraries
Summary:        IJS raster image transport protocol library
Version:        0.35
Release:        11
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.gz
#BuildRequires:  docbook, docbook-utils 

%description
 IJS raster image transport protocol: shared library
 IJS is, first and foremost, a protocol for transmission of raster page
 images. This snapshot provides a reference implementation of the protocol,
 the design of which is still in flux. When the protocol specification is
 published, it will be authoritative. Applications should feel free to link
 against the library provided in this package, adapt that code for their own
 needs, or roll a completely new implementation.
 .
 IJS is a client-server protocol, used to write ghostscript drivers. The
 drivers are separate programs. The client and server communicate via pipes,
 though shared memory may be used additionally in the future. Currently IJS
 is used by the hpijs and ijsgimpprint drivers.
 .
 Code for both the client- and server-side is included in the library. This
 package provides the shared library.

%package devel
License:        MIT License
Summary:        Include Files and Libraries Mandatory for Development
Requires:       libijs eglibc-devel
Group:          Development/Libraries/C and C++

%description devel
 IJS raster image transport protocol: development files
 IJS (InkJet Server) is, first and foremost, a protocol for transmission of
 raster page images. This snapshot provides a reference implementation of
 the protocol, the design of which is still in flux. When the protocol
 specification is published, it will be authoritative. Applications should
 feel free to link against the library provided in this package, adapt that
 code for their own needs, or roll a completely new implementation.
 .
 IJS is a client-server protocol, used to write ghostscript drivers. The
 drivers are separate programs. The client and server communicate via pipes,
 though shared memory may be used additionally in the future. Currently IJS
 is used by the hpijs and ijsgimpprint drivers.
 .
 Code for both the client- and server-side is included in the library. This
 package provides a static library, development headers and documentation.

%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS"    
export CXXFLAGS="$RPM_OPT_FLAGS"    

%configure\
    --prefix=/usr\
    --mandir=/usr/share/man --infodir=/usr/share/info \
    --enable-shared

make  %{?_smp_flags} CFLAGS="$CFLAGS"
make doc

%install
%makeinstall
mkdir -p %{buildroot}/usr/share/license
cp %{_builddir}/%{buildsubdir}/debian/copyright %{buildroot}/usr/share/license/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files 
%manifest libijs.manifest
%defattr(-,root,root)
/usr/share/license/%{name}
%{_libdir}/libijs-0.35.so

%files devel
%defattr(-,root,root)
#%doc README
%{_includedir}/ijs/*.h
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/*.a
%{_libdir}/pkgconfig/ijs.pc
%{_bindir}/*
#%{_docdir}/*
%{_mandir}/man1/ijs-config.1.gz

%changelog