• R/O
  • SSH

contrib-spec-files: Commit

日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。


Commit MetaInfo

Revision2e71c62e3283091422a73c0d149b8e151d81b758 (tree)
Time2017-08-09 07:21:09
AuthorFumihisa TONAKA <fumi.ftnk@gmai...>
CommiterFumihisa TONAKA

Log Message

SFEoptipng: added

Change Summary

Incremental Difference

diff -r 7c4498f29685 -r 2e71c62e3283 specs/SFEoptipng.spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/specs/SFEoptipng.spec Wed Aug 09 07:21:09 2017 +0900
@@ -0,0 +1,69 @@
1+%include Solaris.inc
2+
3+%define tarball_name optipng
4+%define tarball_version 0.7.6
5+
6+Name: SFEoptipng
7+IPS_Package_Name: image/optipng
8+Version: 0.7.6
9+Summary: OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information.
10+License: zlib license
11+URL: http://optipng.sourceforge.net/
12+Source: %{sf_download}/optipng/%{tarball_name}-%{tarball_version}.tar.gz
13+BuildRoot: %{_tmppath}/%{name}-%{version}-build
14+
15+BuildRequires: library/zlib
16+BuildRequires: image/library/libpng
17+Requires: library/zlib
18+Requires: image/library/libpng
19+
20+%description
21+OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information. This program also converts external formats (BMP, GIF, PNM and TIFF) to optimized PNG, and performs PNG integrity checks and corrections.
22+
23+%prep
24+%setup -q -n %{tarball_name}-%{tarball_version}
25+
26+%build
27+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
28+if test "x$CPUS" = "x" -o $CPUS = 0; then
29+ CPUS=1
30+fi
31+
32+%ifarch sparcv9
33+export CFLAGS='-m64 -xO4 -D__sparc -mt -DFFI_NO_RAW_API -Kpic'
34+%endif
35+
36+%ifarch amd64
37+export CFLAGS='-m64 -xO4 -Ui386 -U__i386 -D__amd64 -xregs=no%frameptr -mt -DFFI_NO_RAW_API'
38+%endif
39+
40+export LDFLAGS='-m64'
41+
42+./configure \
43+ -prefix=%{_prefix} \
44+ -with-system-zlib \
45+ -with-system-libpng \
46+ -mandir=%{_mandir}
47+
48+make -j$CPUS
49+
50+%install
51+rm -rf %{buildroot}
52+make DESTDIR=%{buildroot} install
53+
54+%clean
55+rm -rf ${RPM_BUILD_ROOT}
56+
57+%files
58+%defattr(-,root,bin)
59+%dir %attr (0755, root, sys) %{_prefix}
60+%dir %attr (0755, root, bin) %{_bindir}
61+%attr (0755, root, bin) %{_bindir}/optipng
62+%dir %attr (0755, root, sys) %{_datadir}
63+%dir %attr (0755, root, bin) %{_mandir}
64+%dir %attr (0755, root, bin) %{_mandir}/man1
65+%attr (0444, root, bin) %{_mandir}/man1/optipng.1
66+
67+%changelog
68+* Wed Aug 09 2017 - Fumihisa TONAKA <fumi.ftnk@gmail.com>
69+- initial commit
diff -r 7c4498f29685 -r 2e71c62e3283 specs/copyright/SFEoptipng.copyright
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/specs/copyright/SFEoptipng.copyright Wed Aug 09 07:21:09 2017 +0900
@@ -0,0 +1,21 @@
1+Copyright (C) 2001-2016 Cosmin Truta and the Contributing Authors.
2+For the purpose of copyright and licensing, the list of Contributing
3+Authors is available in the accompanying AUTHORS file.
4+
5+This software is provided 'as-is', without any express or implied
6+warranty. In no event will the author(s) be held liable for any damages
7+arising from the use of this software.
8+
9+Permission is granted to anyone to use this software for any purpose,
10+including commercial applications, and to alter it and redistribute it
11+freely, subject to the following restrictions:
12+
13+1. The origin of this software must not be misrepresented; you must not
14+ claim that you wrote the original software. If you use this software
15+ in a product, an acknowledgment in the product documentation would be
16+ appreciated but is not required.
17+
18+2. Altered source versions must be plainly marked as such, and must not
19+ be misrepresented as being the original software.
20+
21+3. This notice may not be removed or altered from any source distribution.
Show on old repository browser