Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:lixy
prettier-prettier-3.2.3
prettier_3.2.3-1.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File prettier_3.2.3-1.spec of Package prettier-prettier-3.2.3
# Copyright 2024 Wong Hoi Sing Edison <hswong3i@pantarei-design.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. %global debug_package %{nil} %global source_date_epoch_from_changelog 0 # macro to filter unwanted provides from Node.js binary native modules %nodejs_default_filter Name: prettier Epoch: 100 Version: 3.2.3 Release: 1%{?dist} BuildArch: noarch Summary: Prettier is an opinionated code formatter License: MIT URL: https://github.com/prettier/prettier/tags Source0: %{name}_%{version}.orig.tar.gz BuildRequires: fdupes BuildRequires: nodejs-packaging %description Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. %prep %autosetup -T -c -n %{name}_%{version}-%{release} tar -zx -f %{S:0} --strip-components=1 -C . %build %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{nodejs_sitelib} cp -rfT node_modules %{buildroot}%{nodejs_sitelib} pushd %{buildroot}%{_bindir} && \ ln -fs %{nodejs_sitelib}/prettier/bin/prettier.cjs prettier && \ popd chmod a+x %{buildroot}%{nodejs_sitelib}/prettier/bin/prettier.cjs fdupes -qnrps %{buildroot}%{nodejs_sitelib} %check %files %license LICENSE %dir %{nodejs_sitelib} %{_bindir}/* %{nodejs_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor