forked from SIPfoundry/legacy-sipxecs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UC-50 - support for suse, thanks Matt White and Levend Sayar!
- Loading branch information
1 parent
52493ae
commit eb148c7
Showing
54 changed files
with
363 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,20 @@ Vendor: SIPfoundry | |
Packager: SIPfoundry <[email protected]> | ||
Url: http://www.sipfoundry.org | ||
|
||
BuildRequires: ant-commons-logging | ||
BuildRequires: ant-junit | ||
BuildRequires: ant-nodeps | ||
BuildRequires: automake | ||
BuildRequires: java-devel >= 1.6 | ||
BuildRequires: zip | ||
BuildRequires: sipxcommons >= %version | ||
BuildRequires: asciidoc | ||
%if %{_vendor} == suse | ||
BuildRequires: docbook-xsl-stylesheets | ||
%else | ||
BuildRequires: docbook-style-xsl | ||
%endif | ||
|
||
Source: %name-%version.tar.gz | ||
|
||
Requires: sipxcommserverlib >= %version | ||
|
@@ -43,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT | |
|
||
%files | ||
%defattr(644,root,root,755) | ||
%dir %{_datadir}/sipxecs | ||
%dir %{_datadir}/sipxecs/process.d | ||
%dir %{_datadir}/sipxecs/schema | ||
%attr(755,@SIPXPBXUSER@,@SIPXPBXUSER@) %{_datadir}/java/sipXecs/sipXacccode | ||
%attr(644,root,root) %{_datadir}/sipxecs/process.d/sipxacccode-process.xml | ||
%attr(644,root,root) %{_datadir}/sipxecs/schema/authcodes.xsd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ EXTRA_DIST = \ | |
CONTRIBUTORS \ | ||
SVN-VERSION \ | ||
BUILDSTAMP \ | ||
@PACKAGE@-rpmlintrc \ | ||
sipxcalllib.spec | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
setBadness('shlib-policy-name-error', 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
setBadness('arch-dependent-file-in-usr-share', 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,11 @@ Group: Productivity/Telephony/SIP/Servers | |
Vendor: SIPfoundry | ||
Packager: SIPfoundry <[email protected]> | ||
Url: http://www.sipfoundry.org/sipXcommons | ||
|
||
%if %{_vendor} == suse | ||
BuildRequires: java-1_6_0-sun-devel | ||
%else | ||
BuildRequires: java-devel >= 1.6 | ||
%endif | ||
BuildRequires: ant-commons-logging | ||
BuildRequires: ant-junit | ||
BuildRequires: ant-nodeps | ||
|
@@ -22,11 +25,19 @@ BuildRequires: pwdutils | |
%endif | ||
BuildRequires: zip | ||
BuildRequires: asciidoc | ||
%if %{_vendor} == suse | ||
BuildRequires: docbook-xsl-stylesheets | ||
%else | ||
BuildRequires: docbook-style-xsl | ||
%endif | ||
|
||
Source: %name-%version.tar.gz | ||
|
||
%if %{_vendor} == suse | ||
Requires: pwdutils | ||
%else | ||
Requires: shadow-utils | ||
%endif | ||
|
||
%if %{?use_ibm_jvm}0 | ||
Requires: java-ibm >= 1.6 | ||
|
@@ -36,7 +47,7 @@ Requires: java >= 1.6 | |
%endif | ||
|
||
%if %{_vendor} == suse | ||
Requires: openssl >= 0.9.8k | ||
Requires: openssl >= 0.9.8 | ||
%endif | ||
|
||
Prefix: %_prefix | ||
|
@@ -47,6 +58,8 @@ Common server side Java packages and supporting third-parth JAR's for sipX | |
|
||
%prep | ||
%setup -q | ||
# suse and obs build system | ||
mv %{_builddir}/%name-%version/%name-rpmlintrc %{_sourcedir} | ||
|
||
%build | ||
%configure @CONFIGURE_OPTIONS@ | ||
|
@@ -55,6 +68,8 @@ make all | |
|
||
%install | ||
|
||
export NO_BRP_CHECK_BYTECODE_VERSION=true | ||
|
||
rm -rf $RPM_BUILD_ROOT | ||
make DESTDIR=$RPM_BUILD_ROOT install | ||
|
||
|
@@ -77,7 +92,10 @@ done | |
# Red Hat's useradd command adds the group automatically, | ||
# but SUSE does not. | ||
# The -f option means to create the group only if it does not already exist. | ||
/usr/sbin/groupadd -f @SIPXPBXGROUP@ | ||
%if %{_vendor} == suse | ||
%else | ||
/usr/sbin/groupadd -f sipxchange | ||
%endif | ||
if ! id -u @SIPXPBXUSER@ > /dev/null 2>&1 ; then | ||
/usr/sbin/useradd \ | ||
-c "sipX service daemon" \ | ||
|
@@ -91,4 +109,8 @@ fi | |
|
||
%files | ||
%defattr(644,root,root,755) | ||
%dir %attr(755,@SIPXPBXUSER@,@SIPXPBXGROUP@) %{_datadir}/java/sipXecs | ||
%attr(755,@SIPXPBXUSER@,@SIPXPBXGROUP@) %{_datadir}/java/sipXecs/sipXcommons | ||
|
||
%changelog | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
setBadness('permissions-file-setuid-bit', 0) | ||
setBadness('shlib-policy-name-error', 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!BuildIgnore: post-build-checks | ||
Name: @PACKAGE@ | ||
Version: @VERSION@ | ||
Release: %{buildno} | ||
|
@@ -6,7 +7,6 @@ Summary: Common Code for sipX servers | |
License: Pingtel Commercial License | ||
Group: Development/Libraries | ||
Vendor: Pingtel Corp. | ||
Packager: Pingtel <[email protected]> | ||
Url: http://www.pingtel.com | ||
|
||
BuildRequires: automake | ||
|
@@ -23,13 +23,21 @@ BuildRequires: xerces-c-devel >= 2.6.0 | |
BuildRequires: shadow-utils | ||
%endif | ||
BuildRequires: asciidoc | ||
%if %{_vendor} == suse | ||
BuildRequires: docbook-xsl-stylesheets | ||
%else | ||
BuildRequires: docbook-style-xsl | ||
%endif | ||
|
||
Source: %name-%version.tar.gz | ||
|
||
Requires: rpm | ||
%if %{_vendor} == suse | ||
Requires: Xerces-c >= 2.6.0 | ||
BuildRequires: apache2-devel | ||
BuildRequires: xerces-c-devel = 2.8.0 | ||
Requires: xerces-c >= 2.6.0 | ||
BuildRequires: pwdutils | ||
Requires: pwdutils | ||
%endif | ||
%if %{_vendor} == redhat | ||
Requires: xerces-c >= 2.6.0 | ||
|
@@ -79,6 +87,8 @@ helpful to build projects using the sipXcommserverLib library | |
|
||
%prep | ||
%setup -q | ||
# suse and obs build system | ||
mv %{_builddir}/%name-%version/%name-rpmlintrc %{_sourcedir} | ||
|
||
%build | ||
%configure @CONFIGURE_OPTIONS@ | ||
|
@@ -198,3 +208,5 @@ fi | |
%{_includedir}/alarm/* | ||
%{_includedir}/sipXecsService/* | ||
%{_includedir}/testlib/* | ||
|
||
%changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ EXTRA_DIST = \ | |
lib.properties \ | ||
neoconf \ | ||
gwt \ | ||
@PACKAGE@-rpmlintrc \ | ||
sipxconfig.spec \ | ||
doc \ | ||
web \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
setBadness('suse-filelist-empty', 0) | ||
setBadness('suse-filelist-forbidden', 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ EXTRA_DIST = \ | |
config/sipX-buildstamp.h.in \ | ||
config/sipX-config.in \ | ||
config/svn-version \ | ||
@PACKAGE@-rpmlintrc \ | ||
@[email protected] | ||
|
||
DISTCLEANFILES = \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
setBadness('suse-filelist-empty', 0) |
Oops, something went wrong.