Accepting request 59725 from home:tzotsos
reviewed ok. OBS-URL: https://build.opensuse.org/request/show/59725 OBS-URL: https://build.opensuse.org/package/show/graphics/openjpeg2?expand=0&rev=1
This commit is contained in:
commit
cf59f34ef8
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
2
openjpeg2.changes
Normal file
2
openjpeg2.changes
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* Mon Jan 24 2010 Angelos Tzotsos <tzotsos@opensuse.org> - 2.0-alpha
|
||||||
|
- Initial build
|
86
openjpeg2.spec
Normal file
86
openjpeg2.spec
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
#
|
||||||
|
# spec file for package openjpeg2
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: openjpeg2
|
||||||
|
Version: 2.0.0
|
||||||
|
Release: 1
|
||||||
|
Summary: The OpenJPEG library is an open-source JPEG 2000 library
|
||||||
|
Group: Development/Libraries/Other
|
||||||
|
License: BSD
|
||||||
|
URL: http://www.openjpeg.org/
|
||||||
|
Source0: openjpeg2.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
BuildRequires: cmake libgeotiff-devel gcc-c++ gcc libpng-devel
|
||||||
|
BuildRequires: fdupes
|
||||||
|
|
||||||
|
%description
|
||||||
|
The main part of the project consists in a JPEG 2000 codec compliant with the Part 1 of the standard (Class-1 Profile-1 compliance)
|
||||||
|
|
||||||
|
%define library_name libopenjpeg2_0
|
||||||
|
|
||||||
|
%package -n libopenjpeg2_0
|
||||||
|
Group: Development/Libraries/Other
|
||||||
|
Summary: The OpenJPEG library is an open-source JPEG 2000 library
|
||||||
|
License: BSD
|
||||||
|
Provides: %{name} = %{version}
|
||||||
|
%description -n libopenjpeg2_0
|
||||||
|
The main part of the project consists in a JPEG 2000 codec compliant with the Part 1 of the standard (Class-1 Profile-1 compliance)
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Group: Development/Libraries/Other
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Provides: %{name}-devel = %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Development files for the %{name} library. The main part of the project consists in a JPEG 2000 codec compliant with the Part 1 of the standard (Class-1 Profile-1 compliance)
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n openjpeg2
|
||||||
|
|
||||||
|
%build
|
||||||
|
cd ..
|
||||||
|
mkdir temp
|
||||||
|
cd temp
|
||||||
|
cmake -DBUILD_EXAMPLES:BOOL=OFF \
|
||||||
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
||||||
|
-DBUILD_TESTING:BOOL=OFF \
|
||||||
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||||
|
-DCMAKE_BUILD_TYPE:STRING="Release" ../openjpeg2/
|
||||||
|
|
||||||
|
make VERBOSE=1 %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
cd ../temp
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
%if "%{_lib}" == "lib64"
|
||||||
|
mkdir %{buildroot}/usr/lib64
|
||||||
|
mv %{buildroot}/usr/lib/* %{buildroot}/usr/lib64/
|
||||||
|
%endif
|
||||||
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n libopenjpeg2_0
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/lib*.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/openjpeg-2.0/
|
||||||
|
%{_includedir}/openjpeg-2.0/*.h
|
||||||
|
%{_libdir}/lib*.so
|
||||||
|
%{_libdir}/openjpeg-2.0/
|
||||||
|
%{_libdir}/openjpeg-2.0/*.cmake
|
||||||
|
|
||||||
|
%changelog
|
3
openjpeg2.tar.gz
Normal file
3
openjpeg2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2d20153a656e72e47db6b6512aaaf09ed5011affdb2fec49c79e96ad2f464a9a
|
||||||
|
size 1149002
|
Loading…
x
Reference in New Issue
Block a user