Group :: Gráficos
RPM: jbig
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: jbig
Version: 1.6
Release: alt2
# API change in version 1.6: jbg_enc_options(): parameter l0 changed type
# API change in version 1.5: struct jbg_enc_state: new member yd1
%define sover 1.6
Summary: JBIG-KIT lossless image compression library
License: GPL
Group: Graphics
Url: http://www.cl.cam.ac.uk/~mgk25/jbigkit/
Source: jbigkit-%version.tar
%package -n libjbig
Summary: JBIG-KIT lossless image compression library (shared library)
Group: System/Libraries
%package -n libjbig-devel
Summary: JBIG-KIT lossless image compression library (header files)
Group: Development/C
Requires: libjbig = %version-%release
%package -n libjbig-devel-static
Summary: JBIG-KIT lossless image compression library (static library)
Group: Development/C
Requires: libjbig-devel = %version-%release
%package utils
Summary: JBIG-KIT lossless image compression utilities
Group: Graphics
Requires: libjbig = %version-%release
Provides: jbigkit = %version
Obsoletes: jbigkit <= %version
%description
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
%description -n libjbig
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
This package is required for libjbig-based programs.
%description -n libjbig-devel
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
This package is only needed if you plan to develop or compile
applications which requires the libjbig library.
%description -n libjbig-devel-static
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
This package contains static JBIG library.
%description utils
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
%prep
%setup -q -n jbigkit
%build
# First, build shared library.
pushd libjbig
%make_build libjbig.a CFLAGS='%optflags %optflags_shared'
gcc -shared -o libjbig.so.%sover -Wl,-soname=libjbig.so.%sover `ar t libjbig.a`
ln -snf libjbig.so.%sover libjbig.so
make clean
popd
# Second, build all the rest.
%make_build CCFLAGS='%optflags'
LD_LIBRARY_PATH=$PWD/libjbig make test
%install
mkdir -p %buildroot{%_bindir,%_libdir,%_includedir,%_man1dir}
install -p -m755 pbmtools/{jbgtopbm,pbmtojbg} %buildroot%_bindir
install -p -m644 pbmtools/*.1 %buildroot%_man1dir
install -p -m644 libjbig/jbig.h %buildroot%_includedir
cp -a libjbig/libjbig.* %buildroot%_libdir
%define pkgdocdir %_docdir/jbig-%version
mkdir -p %buildroot%pkgdocdir
cp -a ANNOUNCE CHANGES %buildroot%pkgdocdir/
cp -a INSTALL %buildroot%pkgdocdir/README
cp -a libjbig/jbig.doc %buildroot%pkgdocdir/jbig.txt
%post -n libjbig -p %post_ldconfig
%postun -n libjbig -p %postun_ldconfig
%files -n libjbig
%_libdir/libjbig.so.%sover
%dir %pkgdocdir
%pkgdocdir/ANNOUNCE
%pkgdocdir/CHANGES
%pkgdocdir/README
%files -n libjbig-devel
%_libdir/libjbig.so
%_includedir/jbig.h
%dir %pkgdocdir
%pkgdocdir/jbig.txt
%if_enabled static
%files -n libjbig-devel-static
%_libdir/libjbig.a
%endif
%files utils
%_bindir/jbgtopbm
%_bindir/pbmtojbg
%_man1dir/jbgtopbm.*
%_man1dir/pbmtojbg.*
%changelog
…
Todas as alterações você pod ver aqui
Version: 1.6
Release: alt2
# API change in version 1.6: jbg_enc_options(): parameter l0 changed type
# API change in version 1.5: struct jbg_enc_state: new member yd1
%define sover 1.6
Summary: JBIG-KIT lossless image compression library
License: GPL
Group: Graphics
Url: http://www.cl.cam.ac.uk/~mgk25/jbigkit/
Source: jbigkit-%version.tar
%package -n libjbig
Summary: JBIG-KIT lossless image compression library (shared library)
Group: System/Libraries
%package -n libjbig-devel
Summary: JBIG-KIT lossless image compression library (header files)
Group: Development/C
Requires: libjbig = %version-%release
%package -n libjbig-devel-static
Summary: JBIG-KIT lossless image compression library (static library)
Group: Development/C
Requires: libjbig-devel = %version-%release
%package utils
Summary: JBIG-KIT lossless image compression utilities
Group: Graphics
Requires: libjbig = %version-%release
Provides: jbigkit = %version
Obsoletes: jbigkit <= %version
%description
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
%description -n libjbig
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
This package is required for libjbig-based programs.
%description -n libjbig-devel
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
This package is only needed if you plan to develop or compile
applications which requires the libjbig library.
%description -n libjbig-devel-static
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
This package contains static JBIG library.
%description utils
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.
%prep
%setup -q -n jbigkit
%build
# First, build shared library.
pushd libjbig
%make_build libjbig.a CFLAGS='%optflags %optflags_shared'
gcc -shared -o libjbig.so.%sover -Wl,-soname=libjbig.so.%sover `ar t libjbig.a`
ln -snf libjbig.so.%sover libjbig.so
make clean
popd
# Second, build all the rest.
%make_build CCFLAGS='%optflags'
LD_LIBRARY_PATH=$PWD/libjbig make test
%install
mkdir -p %buildroot{%_bindir,%_libdir,%_includedir,%_man1dir}
install -p -m755 pbmtools/{jbgtopbm,pbmtojbg} %buildroot%_bindir
install -p -m644 pbmtools/*.1 %buildroot%_man1dir
install -p -m644 libjbig/jbig.h %buildroot%_includedir
cp -a libjbig/libjbig.* %buildroot%_libdir
%define pkgdocdir %_docdir/jbig-%version
mkdir -p %buildroot%pkgdocdir
cp -a ANNOUNCE CHANGES %buildroot%pkgdocdir/
cp -a INSTALL %buildroot%pkgdocdir/README
cp -a libjbig/jbig.doc %buildroot%pkgdocdir/jbig.txt
%post -n libjbig -p %post_ldconfig
%postun -n libjbig -p %postun_ldconfig
%files -n libjbig
%_libdir/libjbig.so.%sover
%dir %pkgdocdir
%pkgdocdir/ANNOUNCE
%pkgdocdir/CHANGES
%pkgdocdir/README
%files -n libjbig-devel
%_libdir/libjbig.so
%_includedir/jbig.h
%dir %pkgdocdir
%pkgdocdir/jbig.txt
%if_enabled static
%files -n libjbig-devel-static
%_libdir/libjbig.a
%endif
%files utils
%_bindir/jbgtopbm
%_bindir/pbmtojbg
%_man1dir/jbgtopbm.*
%_man1dir/pbmtojbg.*
%changelog
…
Todas as alterações você pod ver aqui