Skip to content
Snippets Groups Projects
Commit 5d195843 authored by akiraohgaki's avatar akiraohgaki Committed by GitHub
Browse files

Merge pull request #54 from ocs-url/develop

Develop
parents f94c18d3 d53e3211
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ script: ...@@ -11,6 +11,7 @@ script:
- mntdir='/mnt/ocs-url' - mntdir='/mnt/ocs-url'
- docker run --rm -v $(pwd):${mntdir} ubuntu:14.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh ubuntu" - docker run --rm -v $(pwd):${mntdir} ubuntu:14.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh ubuntu"
- docker run --rm -v $(pwd):${mntdir} fedora:20 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh fedora" - docker run --rm -v $(pwd):${mntdir} fedora:20 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh fedora"
- docker run --rm -v $(pwd):${mntdir} opensuse:42.1 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh opensuse"
- docker run --rm -v $(pwd):${mntdir} base/archlinux:latest /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh archlinux" - docker run --rm -v $(pwd):${mntdir} base/archlinux:latest /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh archlinux"
#- docker run --rm -v $(pwd):${mntdir} ubuntu:16.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh snap" #- docker run --rm -v $(pwd):${mntdir} ubuntu:16.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh snap"
#- docker run --rm -v $(pwd):${mntdir} --cap-add SYS_ADMIN --device /dev/fuse ubuntu:14.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh appimage" #- docker run --rm -v $(pwd):${mntdir} --cap-add SYS_ADMIN --device /dev/fuse ubuntu:14.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh appimage"
......
...@@ -19,6 +19,12 @@ pipelines: ...@@ -19,6 +19,12 @@ pipelines:
script: script:
- sh scripts/build-docker.sh fedora - sh scripts/build-docker.sh fedora
- cat transfer.log - cat transfer.log
build-opensuse:
- step:
image: opensuse:42.1
script:
- sh scripts/build-docker.sh opensuse
- cat transfer.log
build-archlinux: build-archlinux:
- step: - step:
image: base/archlinux:latest image: base/archlinux:latest
......
Summary: OCS-URL
Name: ocs-url
Version: 3.0.0
Release: 1%{?dist}
License: GPLv3+
Group: Applications/Internet
URL: https://github.com/ocs-url/ocs-url
#Source0: https://github.com/ocs-url/ocs-url/archive/release-%{version}.tar.gz
Source0: %{name}.tar.gz
Requires: libQt5Svg5 >= 5.2.0, libqt5-qtquickcontrols >= 5.2.0
BuildRequires: make, automake, gcc, gcc-c++, libtool, libqt5-qtbase-devel >= 5.2.0, libqt5-qtsvg-devel >= 5.2.0, libqt5-qtdeclarative-devel >= 5.2.0, git, rpm-build
%description
An install helper program for items served on OpenCollaborationServices (OCS).
%prep
#%%autosetup -n %{name}-release-%{version}
%autosetup -n %{name}
sh scripts/import.sh
%build
%define debug_package %{nil}
qmake-qt5 PREFIX="/usr"
make
%install
make INSTALL_ROOT="%{buildroot}" install
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%clean
rm -rf %{buildroot}
%changelog
* Sun Mar 05 2017 Akira Ohgaki <akiraohgaki@gmail.com> - 3.0.0-1
- Rename xdgurl to ocs-url
- Add ocs:// and ocss:// schemes
- xdg:// and xdgs:// schemes still available for backward compatibile
- New app icon
- New dialog window
- Labels and messages are translatable
- Qt 5.2 support
- Use the same configs of install-types with ocsstore
- Add en_US translation
- Add ja_JP translation
- Add tr_TR translation (by tarakbumba)
* Wed Jan 25 2017 Akira Ohgaki <akiraohgaki@gmail.com> - 2.0.3-1
- Change installation destination of type bin
- Update qtlib
- Fix for dialog
* Thu Nov 17 2016 Akira Ohgaki <akiraohgaki@gmail.com> - 2.0.2-1
- Update qtlibs
- Small fix
* Mon Nov 14 2016 Akira Ohgaki <akiraohgaki@gmail.com> - 2.0.1-1
- Update library
- Fix download/installation process
* Fri Oct 28 2016 Akira Ohgaki <akiraohgaki@gmail.com> - 2.0.0-1
- Re-implemented xdgurl as Qt program
- Download progress bar
- Add install-type "bin"
* Fri Jul 15 2016 Akira Ohgaki <akiraohgaki@gmail.com> - 1.0.1-1
- Clean successfull message
- Return exit code
* Wed Jul 06 2016 Akira Ohgaki <akiraohgaki@gmail.com> - 1.0.0-1
- Initial release
...@@ -6,6 +6,7 @@ DISTFILES += \ ...@@ -6,6 +6,7 @@ DISTFILES += \
$${PWD}/ubuntu/debian/rules \ $${PWD}/ubuntu/debian/rules \
$${PWD}/ubuntu/debian/ocs-url.install \ $${PWD}/ubuntu/debian/ocs-url.install \
$${PWD}/fedora/ocs-url.spec \ $${PWD}/fedora/ocs-url.spec \
$${PWD}/opensuse/ocs-url.spec \
$${PWD}/archlinux/PKGBUILD \ $${PWD}/archlinux/PKGBUILD \
$${PWD}/snap/snapcraft.yaml \ $${PWD}/snap/snapcraft.yaml \
$${PWD}/snap/snap/gui/ocs-url.desktop \ $${PWD}/snap/snap/gui/ocs-url.desktop \
......
...@@ -63,6 +63,22 @@ build_fedora() { ...@@ -63,6 +63,22 @@ build_fedora() {
transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.rpm")" transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.rpm")"
} }
build_opensuse() {
# docker-image: opensuse:42.1
zypper --non-interactive refresh
zypper --non-interactive install make automake gcc gcc-c++ libtool libqt5-qtbase-devel libqt5-qtsvg-devel libqt5-qtdeclarative-devel
zypper --non-interactive install git rpm-build
zypper --non-interactive install curl
useradd -m ${PKGUSER}
export HOME="/home/${PKGUSER}"
chown -R ${PKGUSER}:${PKGUSER} "${PROJDIR}"
su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.rpm")"
}
build_archlinux() { build_archlinux() {
# docker-image: base/archlinux:latest # docker-image: base/archlinux:latest
pacman -Syu --noconfirm pacman -Syu --noconfirm
...@@ -117,6 +133,8 @@ if [ "${BUILDTYPE}" = 'ubuntu' ]; then ...@@ -117,6 +133,8 @@ if [ "${BUILDTYPE}" = 'ubuntu' ]; then
build_ubuntu build_ubuntu
elif [ "${BUILDTYPE}" = 'fedora' ]; then elif [ "${BUILDTYPE}" = 'fedora' ]; then
build_fedora build_fedora
elif [ "${BUILDTYPE}" = 'opensuse' ]; then
build_opensuse
elif [ "${BUILDTYPE}" = 'archlinux' ]; then elif [ "${BUILDTYPE}" = 'archlinux' ]; then
build_archlinux build_archlinux
elif [ "${BUILDTYPE}" = 'snap' ]; then elif [ "${BUILDTYPE}" = 'snap' ]; then
......
...@@ -47,6 +47,18 @@ build_fedora() { ...@@ -47,6 +47,18 @@ build_fedora() {
rpmbuild --define "_topdir ${BUILDDIR}" -bb "${BUILDDIR}/SPECS/${PKGNAME}.spec" rpmbuild --define "_topdir ${BUILDDIR}" -bb "${BUILDDIR}/SPECS/${PKGNAME}.spec"
} }
build_opensuse() {
cd "${PROJDIR}"
mkdir -p "${BUILDDIR}"
export_srcarchive "${SRCARCHIVE}"
mkdir "${BUILDDIR}/SOURCES"
mkdir "${BUILDDIR}/SPECS"
mv "${SRCARCHIVE}" "${BUILDDIR}/SOURCES"
cp "${PROJDIR}/pkg/opensuse/${PKGNAME}.spec" "${BUILDDIR}/SPECS"
rpmbuild --define "_topdir ${BUILDDIR}" -bb "${BUILDDIR}/SPECS/${PKGNAME}.spec"
}
build_archlinux() { build_archlinux() {
cd "${PROJDIR}" cd "${PROJDIR}"
mkdir -p "${BUILDDIR}" mkdir -p "${BUILDDIR}"
...@@ -107,6 +119,8 @@ if [ "${BUILDTYPE}" = 'ubuntu' ]; then ...@@ -107,6 +119,8 @@ if [ "${BUILDTYPE}" = 'ubuntu' ]; then
build_ubuntu build_ubuntu
elif [ "${BUILDTYPE}" = 'fedora' ]; then elif [ "${BUILDTYPE}" = 'fedora' ]; then
build_fedora build_fedora
elif [ "${BUILDTYPE}" = 'opensuse' ]; then
build_opensuse
elif [ "${BUILDTYPE}" = 'archlinux' ]; then elif [ "${BUILDTYPE}" = 'archlinux' ]; then
build_archlinux build_archlinux
elif [ "${BUILDTYPE}" = 'snap' ]; then elif [ "${BUILDTYPE}" = 'snap' ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment